andre 4 years ago
parent
commit
555b4ed58e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      index.php

+ 3 - 3
index.php

@@ -13,9 +13,9 @@ function checkToken($token,$db) {
     $dbAction = $db->prepare("SELECT description FROM clients WHERE token = ?");
     $dbAction->bind_param('s',$token);
     $dbAction->execute();
-    $dbAction->bind_result($description);
-    echo "$description blubb $dbAction->num_rows" . PHP_EOL;
-    if ($dbAction->num_rows == 1){
+    $dbAction->store_result();
+    echo $dbAction->num_rows() . PHP_EOL;
+    if ($dbAction->num_rows() == 1){
         return true;
     }
     return false;