Jump to content

What does this mean?


justAnoob

Recommended Posts

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

$_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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.