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 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 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
Archived
This topic is now archived and is closed to further replies.