andre 4 年之前
父节点
当前提交
66f9308c6d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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";
-    $dbAction = $db->prepare("SELECT description FROM clients WHERE token=?");
+    $dbAction = $db->prepare("SELECT description FROM clients WHERE token='?'");
     $dbAction->bind_param('s',$token);
     $dbAction->execute();
     $dbAction->bind_result($description);