search page offset limit

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
blurrblurr
Forum Newbie
Posts: 3
Joined: Tue Jan 07, 2003 7:31 pm

search page offset limit

Post by blurrblurr »

hi
I need to do a search engine below is my script

if ($row = mysql_fetch_array($result)) {

do {
PRINT "Name: </b> ";
print $row["name"];
print ("<p>");
} while($row = mysql_fetch_array($result));
} else {print "Sorry, no records were found!";}

There are hundreds of result how do I offset to 20 result per page?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

perform a search on all these terms "limit per page" and you will find plenty of threads about this topic here ;)
Post Reply