logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 08-06-2013, 04:21 AM   #1
blake
 
Join Date: Oct 2010
Posts: 70
Default Include

Anyone know how to make an Include for a menu so it will update the menu on all pages at one time?

I'm not a php anything and need some help with this.

Thanks
blake is offline   Reply With Quote
Old 08-06-2013, 04:32 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

if the pages are php you use the code
Code:
 <?php    include('incl/menu.php'); ?>
path to your file you want to include
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 08-06-2013, 04:38 AM   #3
blake
 
Join Date: Oct 2010
Posts: 70
Default

Wow thanks, now where do I place the code?

I'll start on the site soon and will make the pages in php.
blake is offline   Reply With Quote
Old 08-06-2013, 06:54 AM   #4
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

where you want the include to be . for instance <div id="menu">
<?php include('incl/menu.php'); ?>
</div>
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting 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

Forum Jump


All times are GMT. The time now is 07:28 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com