andre 4 years ago
parent
commit
879e98ebe3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -9,7 +9,7 @@ if ($db->connect_errno){
 $db->set_charset('utf8');
 
 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->execute();
     $dbAction->bind_result($token, $description);