viezure Posted May 18, 2008 Author Share Posted May 18, 2008 Problem is solved, but i have a quick question for me to understand something. When i just open the page "listeazaclienti.php", where does the script search at first for the 'pagenum'? if (!(isset($_GET['pagenum']))) { $pagenum = 1; } else { $pagenum = $_GET['pagenum']; // abstract var from link } Let me see if i get it right. $_GET['pagenum'] doesn't have what to get at start, 'pagenum' doesn't event exist, so it creates the $pagenum var with the value of 1, and from there the script starts. Right? And $_GET is a global variable related to forms. If i don't have any forms, how does it work? Quote Link to comment https://forums.phpfreaks.com/topic/106115-pagination-tutorials-stuck-on-something/page/2/#findComment-544200 Share on other sites More sharing options...
micmania1 Posted May 18, 2008 Share Posted May 18, 2008 $_GET relates to the URL. domain.com/page.php?pagenum=1 Whether you get to hat page wih a url or via a form, doesn't matter. Quote Link to comment https://forums.phpfreaks.com/topic/106115-pagination-tutorials-stuck-on-something/page/2/#findComment-544206 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.