janim Posted October 29, 2007 Share Posted October 29, 2007 hello guys who know how to now if my database is finished browsing i have this code $start=0; echo "<a href='showcat.php?cat={$cat}&start={$start}'>Next</a>"; it's for the limit in the next page like this : $cat=$_GET['cat']; $start=$_GET['start']; $next=$start+5; select * from $table where cat='$cat' limit $start,$next so i want to stop showing NEXT link when the database finished how can i know that it finished thanks for reading my post Quote Link to comment https://forums.phpfreaks.com/topic/75206-how-to-know-the-last-id-in-mysql/ Share on other sites More sharing options...
Dragen Posted October 29, 2007 Share Posted October 29, 2007 take a look at the two tutorials on this page. It's really simple. http://www.phpfreaks.com/tutorial_cat/25/Page-Number--Pagination.php Quote Link to comment https://forums.phpfreaks.com/topic/75206-how-to-know-the-last-id-in-mysql/#findComment-380368 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.