Thread: php question
View Single Post
Old 10-24-2007, 08:05 PM  
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
php question

I am using this code to display a page included in another:

Code:
<?php include('<?echo "$id";?>'); ?>
So I link this way:

www.mysite.com/?id=1

How do I make links on the page to advance 1 or decrease 1?

Code:
<a href="http://www.mysite.com/<?echo "$id+1";?>

or

<a href="http://www.mysite.com/<?echo "$id-1";?>
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote