PHP - Post data to a database on visit of a URL? -


i new @ php.

is possible post data database on visit of url?

i want user scan qr code open link echo message. in end date , time recorded database. how that?

thanks again

yes, possible...

yourscript.php

<?php $somedata=isset($_get['somedata'])?$_get['somedata']:null; $conn=getyourdbconnction(); $sql='insert yourtable(datatime,somedata) values(now(),?); $stmt=$conn->prepare($sql); $stmt->execute(array($somedata)); echo('response'); 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -