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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.