andre %!s(int64=4) %!d(string=hai) anos
pai
achega
96a1b9dacc
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      index.php

+ 2 - 1
index.php

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