Browse Source

database test was executing queries-1 number of queries

Patrick Falls 12 years ago
parent
commit
601842fc76
1 changed files with 1 additions and 1 deletions
  1. 1 1
      php/dbraw.php

+ 1 - 1
php/dbraw.php

@@ -24,7 +24,7 @@ $statement = $pdo->prepare('SELECT randomNumber FROM World WHERE id = :id');
 $statement->bindParam(':id', $id, PDO::PARAM_INT);
 $statement->bindParam(':id', $id, PDO::PARAM_INT);
 
 
 // For each query, store the result set values in the response array
 // For each query, store the result set values in the response array
-while (0 < --$query_count) {
+while (0 < $query_count--) {
   $statement->execute();
   $statement->execute();
   
   
   // Store result in array.
   // Store result in array.