forcom Posted June 17, 2009 Share Posted June 17, 2009 My database has over 200 rows and I trying to get my data to display 10 rows and create next page. $row_per_page = 10; $q = mysql_query("SELECT * FROM table"); $total_rows = mysql_num_rows($q); if ($total_rows > $row_per_page) $pages = ceil($total_rows / $row_per_page); $addpage = $pages + 1; echo "Page"; for ($number = 1; $number < $addpage; $number++){ echo "$number"; } Quote Link to comment https://forums.phpfreaks.com/topic/162510-solved-how-to-get-next-page-link/ Share on other sites More sharing options...
Ken2k7 Posted June 17, 2009 Share Posted June 17, 2009 You want pagination Quote Link to comment https://forums.phpfreaks.com/topic/162510-solved-how-to-get-next-page-link/#findComment-857733 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.