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

+ 2 - 2
index.php

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