andre 4 년 전
부모
커밋
6b1c8abd10
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -11,7 +11,7 @@ $db->set_charset('utf8');
 function checkToken($token,$db) {
     echo "got token: $token";
     $dbAction = $db->prepare("SELECT description FROM clients WHERE token='?'");
-    $dbAction->bind_param('s',$token);
+    $dbAction->bind_value('s',$token);
     $dbAction->execute();
     $dbAction->bind_result($description);
     echo "$description blubb $dbAction->num_rows";