1
Bitex 2015-03-03 21:52:52 +08:00 1
我习惯用
if (! isset($_GET['page'])) { $page = 0; } // blabla |
2
mhycy 2015-03-03 22:40:16 +08:00 1
|
3
mhycy 2015-03-03 22:45:38 +08:00
https://gist.github.com/anonymous/a615110d10145992eaa5
刚刚的代码有BUG 漏掉了 $page = ($page - 1) * $itemPerPage; |