Paging Results, PLEASE HELP!!

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
ryaneazy
Forum Newbie
Posts: 1
Joined: Tue Jul 21, 2009 1:55 pm

Paging Results, PLEASE HELP!!

Post by ryaneazy »

OK. I am having so much trouble on how to page results with php. My code is as follows:

$sql = mysql_query ("SELECT * FROM people WHERE email = '$_POST[email]'");

while ($row = mysql_fetch_assoc($sql) ){
echo "$row[email]";

}

Someone please let me know how I can page these results! I would like to have 12 results until going to the next page! Thanks for your time and I look forward to someone that can help me out!
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: Paging Results, PLEASE HELP!!

Post by jayshields »

Search Google or these forums for "pagination".
Post Reply