We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87133cd commit ef6e431Copy full SHA for ef6e431
mysqli_cached.php
@@ -46,25 +46,27 @@ public function query($sql) {
46
if ($resetflag <= $query->time) {
47
$this->cachedquery = $query;
48
return($query);
49
- };
+ }
50
else {
51
52
53
54
55
56
57
58
$resource = $this->link->query($sql);
59
if ($resource) {
60
if (is_resource($resource)) {
61
$i = 0;
62
$data = array;
63
while ($result = $query->fetch_accoc($resource)) {
64
- $data =
+ $data[$i] = $result;
65
+ $i++;
66
}
67
+
68
69
70
71
72
0 commit comments