Click to See Complete Forum and Search --> : Nav Bar


jcal
03-15-2006, 12:50 PM
Hi everyone... If this belongs in the wrong section, please feel free to move it. I'm new, and this seemed like the best forum to post my question in. :-p

My question is: is it possible to link a navigation bar so that when I add a new section, I don't have to apply the code to every individual page each time? I guess it would be sort of like a CSS style sheet that dealt with links, and not style guides. I realize an IFRAME would be one way to go, but I was wondering if there was a better way.

The site in question is http://aisdadclub.com. I want to be able to streamline the way I add new sections to the left nav bar, since I'm asked to add new sections every few weeks.

If you guys could point me in the right direction, I would be real grateful. :)

===========
webmaster of:
http://aisdadclub.com
http://studio-jgc.net

johneva
03-15-2006, 01:26 PM
Firstly welcome to the forum.

I am so glad to see you dont like the idea of frames already thats great frames suck.

As long as your host supports PHP it is dead easy.

http://www.tizag.com/phpT/include.php

There is a way if your host dont support PHP it is SSI assuming your host supports these.

http://www.ssi-developer.net/ssi/ssi-include.shtml

Hope that sorts ya out :)

.

jcal
03-15-2006, 02:14 PM
Thanks for the quick and helpful reply! I'm naming my first born after you. :)

I've implemented it, it works great online, but it won't even show up when I'm testing it on my desktop. I'm running Firefox 1.5.0.1 if that makes a difference. Any idea on how to get it to show?

johneva
03-15-2006, 02:26 PM
Yep this is cos you dont have PHP installed on your computer.

You can get it from here.
http://www.php.net/downloads.php

You will also need apache if you want to test PHP on your own computer Apache is a server software.
http://httpd.apache.org/download.cgi

Kravvitz
03-15-2006, 02:31 PM
I suggest you get XAMPP (http://sourceforge.net/projects/xampp). XAMPP is a very easy to install Apache Distribution for Linux, Solaris, Windows and Mac OS X. The package includes the Apache web server, MySQL, PHP, Perl, a FTP server and phpMyAdmin.

pcthug
03-16-2006, 01:42 AM
Yep, nothin' beats good ol Xampp (http://www.apachefriends.org/en/xampp.html). It allows you to run a local server, allowing you to test out all your scripts without ever even having to upload to your online server