|
|
Quick PHP ???
|
|
|
|
Mac Elite
Join Date: Jul 2002
Status:
Offline
|
|
I want to create a dynamic list of links for my site, depending on the page currently being viewed, so redundant links aren't shown. What's the easiest way to do this in php? Site
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Sep 2004
Status:
Offline
|
|
Originally posted by Thinine:
I want to create a dynamic list of links for my site, depending on the page currently being viewed, so redundant links aren't shown. What's the easiest way to do this in php? Site
Please elaborate.
Also, do you have a database that you can use on the web site? (such as MySQL)
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status:
Offline
|
|
The way I do that sort of stuff is to have only one page with a variable, lets say "$bla".
Then the link to the page....
Code:
<a href "index.php?bla=1">
Then on the page.....
Code:
if($bla==1){
"show the relevant menu";
unset($bla)
}
....if you get what I mean.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|