Browse Source

database test was executing queries-1 number of queries

Patrick Falls 12 năm trước cách đây
mục cha
commit
601842fc76
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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.