Re: [PHP-DB] Limited number of database results
by Niel Archer other posts by this author
Dec 13 2006 9:09AM messages near this date
[PHP-DB] Limited number of database results
|
Re: [PHP-DB] Limited number of database results
Hi
use a LIMIT clause in your SQL. Something like:
$query="SELECT * FROM xxxx WHERE hello = '$hello' LIMIT " . ($page - 1) *
$rows . ", $rows";
then you only need specify the logic to set the page, row and
limitations
Niel
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Chris Carter
Niel Archer
John Meyer
Bastien Koert
|