Paging Results, PLEASE HELP!!
Posted: Tue Jul 21, 2009 1:59 pm
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!
$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!