Pārlūkot izejas kodu

database test was executing queries-1 number of queries

Patrick Falls 12 gadi atpakaļ
vecāks
revīzija
601842fc76
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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);
 
 // For each query, store the result set values in the response array
-while (0 < --$query_count) {
+while (0 < $query_count--) {
   $statement->execute();
   
   // Store result in array.