瀏覽代碼

database test was executing queries-1 number of queries

Patrick Falls 12 年之前
父節點
當前提交
601842fc76
共有 1 個文件被更改,包括 1 次插入1 次删除
  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.