Skip to content

Commit ef6e431

Browse files
author
Igor Chishkala
committed
70% of query function
1 parent 87133cd commit ef6e431

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

mysqli_cached.php

+10-8
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,27 @@ public function query($sql) {
4646
if ($resetflag <= $query->time) {
4747
$this->cachedquery = $query;
4848
return($query);
49-
};
49+
}
5050
else {
5151
$this->cachedquery = $query;
5252
return($query);
5353

54-
};
55-
};
56-
};
57-
};
54+
}
55+
}
56+
}
57+
}
5858
$resource = $this->link->query($sql);
5959
if ($resource) {
6060
if (is_resource($resource)) {
6161
$i = 0;
6262
$data = array;
6363
while ($result = $query->fetch_accoc($resource)) {
64-
$data =
64+
$data[$i] = $result;
65+
$i++;
6566
}
66-
};
67-
};
67+
68+
}
69+
}
6870
}
6971

7072

0 commit comments

Comments
 (0)