This article describes the simple and convenient paging technology (original) of SQL. for details, refer to the simple and convenient paging technology (original) of SQL)
$ I = 10; // a page displays 10 if (isset ($ _ GET ['A']) $ a = $ _ GET ['A']; else $ a = 0; // connection. after selecting the database, $ query = "SELECT * FROM entries order by date_entered DESC limit $ a, $ I"; // after the query is processed, print 'next previous page '; // test. php for this page
Confirmed, code available
We hope to have a better paging technology.
------ Solution --------------------
Only simple page turning...
------ Solution --------------------
So what's right? Do you have limit $ B to reflect the total number?
The above is the simple and convenient paging technology (original) content of SQL. For more information, please follow the PHP Chinese network (www.php1.cn )!