andre 4 anni fa
parent
commit
879e98ebe3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -9,7 +9,7 @@ if ($db->connect_errno){
 $db->set_charset('utf8');
 $db->set_charset('utf8');
 
 
 function checkToken($token,$db) {
 function checkToken($token,$db) {
-    $dbAction = $db->prepare("SELECT FROM client WHERE token = ?");
+    $dbAction = $db->prepare("SELECT FROM client WHERE token = '?'");
     $dbAction->bind_param('s',$token);
     $dbAction->bind_param('s',$token);
     $dbAction->execute();
     $dbAction->execute();
     $dbAction->bind_result($token, $description);
     $dbAction->bind_result($token, $description);