jdock1 Posted July 13, 2010 Share Posted July 13, 2010 Im running a petition type site, where Im displaying the "signatures" from the database on a page on the site using mysql_fetch_array() in a while loop. Well Im getting alot of entries into the database, and the page is too long & it takes too long for the page to load.. how can I make it into seperate pages? Heres the code im using to display the database rows.. while ($row = mysqli_fetch_array($result)){ echo '<b>First name:</b> ' . $row['first'] . '<br><b>Last name:</b>' . ' ' . $row['last'] . '<br><b>Comment:</b>' . ' ' . $row['comment'] . ' ' . '<hr>'; } ?> Link to comment https://forums.phpfreaks.com/topic/207560-database-results-page-too-long-how-can-i-make-it-into-seperate-pages/ Share on other sites More sharing options...
Pikachu2000 Posted July 13, 2010 Share Posted July 13, 2010 What you're looking for is pagination. There's a good tutorial here Link to comment https://forums.phpfreaks.com/topic/207560-database-results-page-too-long-how-can-i-make-it-into-seperate-pages/#findComment-1085185 Share on other sites More sharing options...
jdock1 Posted July 13, 2010 Author Share Posted July 13, 2010 What you're looking for is pagination. There's a good tutorial here Thanks!! Thats exactly what I was looking for.. tutorial helped a lot Link to comment https://forums.phpfreaks.com/topic/207560-database-results-page-too-long-how-can-i-make-it-into-seperate-pages/#findComment-1085194 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.