Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Quick PHP ???

Quick PHP ???
Thread Tools
Thinine
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Nov 10, 2004, 08:34 PM
 
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
     
benandkelley
Junior Member
Join Date: Sep 2004
Status: Offline
Reply With Quote
Nov 12, 2004, 11:08 AM
 
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)
     
skalie
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Nov 12, 2004, 12:56 PM
 
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 Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:13 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,