4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 PHP Menu
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Gary
Junior WebHelper
Junior WebHelper


Joined: 30 Apr 2003
Posts: 21
Location: the UK, Devon

PostPosted: Wed Apr 30, 2003 2:50 pm (14 years, 7 months ago) Reply with QuoteBack to Top

Hey everyone!!! I hope someone can help!

on my web site 'www.thesummer.net' the menu is horrible [please take a look to understand] now what i really wanna do is control that menu from one source... i was told php can do this

i treid <include:menu.php> [lol] and i made the menu in a single page and called it menu.php but its crazy

anyone know of any good online guides, or is anyone here able to give me a few hints...?

thanks alot!!!

All The Best
Gary
OfflineView User's ProfileFind all posts by GarySend Personal MessageVisit Poster's WebsiteMSN Messenger
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Wed Apr 30, 2003 3:17 pm (14 years, 7 months ago) Reply with QuoteBack to Top

Our PHP introductory tutorial should be able to teach you some of the basic structure of PHP code: http://www.4webhelp.net/tutorials/php/basics.php

Now, as to your problem:

You have to name the page where you're putting the code with a .php extension, and use this code:

Code:
<?php include('menu.php'); ?>


where menu.php is in the same directory as the file you put the code in.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Gary
Junior WebHelper
Junior WebHelper


Joined: 30 Apr 2003
Posts: 21
Location: the UK, Devon

PostPosted: Wed Apr 30, 2003 3:23 pm (14 years, 7 months ago) Reply with QuoteBack to Top

oh my god your a genuis!!!!


thank you so much!!! this forum is great!!!
OfflineView User's ProfileFind all posts by GarySend Personal MessageVisit Poster's WebsiteMSN Messenger
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.055384 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme