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
Post a Comment