andre 4 years ago
parent
commit
96a1b9dacc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      index.php

+ 2 - 1
index.php

@@ -14,7 +14,8 @@ function checkToken($token,$db) {
     $dbAction->bind_param('s',$token);
     $dbAction->execute();
     $dbAction->store_result();
-    echo $dbAction->num_rows() . PHP_EOL;
+    $dbAction->bind_result($desc);
+    echo "found $desc" . PHP_EOL;
     if ($dbAction->num_rows() == 1){
         return true;
     }