justAnoob Posted December 30, 2009 Share Posted December 30, 2009 The $_GET['p'] , is that just a session variable that was set? I found this on google and wanted to use something similar for my pagination <?php $pager = new pager($_GET['p'], $records_per_page, $total_count, $number_of_links); ?> When I try to use it with my code, it is saying that "class pager not found" Link to comment https://forums.phpfreaks.com/topic/186639-what-does-this-mean/ Share on other sites More sharing options...
.josh Posted December 30, 2009 Share Posted December 30, 2009 $_GET is a global array that contains whatever variables are passed in the query string of a request to your script. For example: http://www.somesite.com/somepage.php?p=123 when somepage.php is requested and run, $_GET['p'] will be set to '123' as far as your error, that line of code is trying to make a new object from class 'pager'. Unless you have that class in your script (in the file or included from another file), that class don't exist. Link to comment https://forums.phpfreaks.com/topic/186639-what-does-this-mean/#findComment-985725 Share on other sites More sharing options...
justAnoob Posted December 30, 2009 Author Share Posted December 30, 2009 I hope I'm allowed to post links http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_23060532.html?eeSearch=true If you look at the very last reply all the way at the bottom of the page, this is what I'm looking to do. Link to comment https://forums.phpfreaks.com/topic/186639-what-does-this-mean/#findComment-985731 Share on other sites More sharing options...
justAnoob Posted December 30, 2009 Author Share Posted December 30, 2009 I suppose without seeing the class, I will not be able to learn much from that example, right? Link to comment https://forums.phpfreaks.com/topic/186639-what-does-this-mean/#findComment-985734 Share on other sites More sharing options...
trq Posted December 30, 2009 Share Posted December 30, 2009 I suppose without seeing the class, I will not be able to learn much from that example, right? That would be correct. Link to comment https://forums.phpfreaks.com/topic/186639-what-does-this-mean/#findComment-985736 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.