Jump to content

simple paging script


wkilc

Recommended Posts

Howdy,

 

Trying to implement a paging script.

 

The example shows how to use a "static" page name to create the link "NEXT" and "PREV" links...

 

$page_name="index.php";

print "<a href='$page_name?start=$next'><font face='Verdana' size='2'>NEXT</font></a>";}

 

I want to make it so that the page name that appears on the link is dynamic, at any given time, it might be queried like this:

index.php?category=Toyota

I tired this, but it didn't work:

$page_name = $HTTP_SERVER_VARS['PHP_SELF'];

 

I'm a noob, if it's not obvious. :-[

 

Thanks in advance.

 

~Wayne

Link to comment
https://forums.phpfreaks.com/topic/115041-simple-paging-script/
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.