FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Need a script - navigation

 


snowboardalliance
I'm working on a navagation layout and wanted to do it in php. I want it so I can have a list of links and then it will generate the html from a template. The links look like this: http://snowboardalliance.frihost.net/test/Test.html

I will make a list of links in a database with the Title, url, and "level" (like the different indents). The problem is, I want the folder images how they are, which means the script would have to detect which image to use.

Any suggestions/scripts welcome.
mathiaus
well you have sub cats right so you could either say if this main cat has any subs (or if any subs have catid of ths main cat) then show folder image A otherwise image B

or....

make another column called open or something (1=open 0=closed) then in your script another if
Code:
if ($open==1) {
$imageurl = "openfolder.gif";
} else {
$imageurl = "closedfolder.gif";
}
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.