andre %!s(int64=4) %!d(string=hai) anos
pai
achega
9aed0da8f0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -10,7 +10,7 @@ $db->set_charset('utf8');
 
 function checkToken($token,$db) {
     echo "got token: $token" . PHP_EOL;
-    $dbAction = $db->prepare("SELECT description FROM clients WHERE token='?'");
+    $dbAction = $db->prepare("SELECT description FROM clients WHERE token='123456a'");
     $dbAction->bind_param('s',$token);
     $dbAction->execute();
     $dbAction->bind_result($description);