PHP MySQL Help please! I would like to display the results of a PHPMySQL query on multiple pages like googles
May 29th, 2010
results where you can navigate to different pages of results instead of having them all on one page.
I am currently using this code:
$resource=mysql_query("SELECT * FROM tutorials WHERE subcat = '$sub' AND status='2'");
while($row=mysql_fetch_array($resource))
{
$rating = ($row['rating'] / $row['votes']);
echo ("
“);
echo (“
“);
echo (“
“);
echo (“
“);
}
?>
Could someone convert the code above to be capable of doing this? I can’t figure out how to do it… thanks

Twitter
2 Comments