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>'; } ?> Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.