SeaninSeattle
IS-IT--Management
I need a little assistance. I'm trying to include a menu system at the top of my webpage, and have need to insert an include in every page (the include has the menu system in it).
I'm using Dreamweaver CS3 - and when I do a server side include (in php), the link is made, and the include functions, but when I look at the design view window, all I see is trash that appears to be from the menu system (as opposed to the page that contains the single include command, then all the other stuff on that page).
When I append the command with a straight php include command, I can see the page in the design view, however when I load it, it says the syntax is wrong, and the page fails to load.
The command which results in a working include, but no design view is (the include is contained in a table):
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<?php require_once('../../includes/navmenu/navbar.php'); ?>
</td>
</tr>
</table>
That works - but no view. The one with a view, but does not work is:
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<?php include(<?php require_once('../../includes/navmenu/navbar.php'); ?>
</td>
</tr>
</table>
I'm going to cross-post this to the Dreamweaver board as well - but any input would be greatly appreciated.
Thanks,
//sse
~~~~~~~~~~~~~~~~~~~~~~~~~~
Sean Engle
ssengle@worldnet.att.net
~~~~~~~~~~~~~~~~~~~~~~~~~~
"When you get to the end of
your rope - tie a knot, and
hang on!" ~ FDR
I'm using Dreamweaver CS3 - and when I do a server side include (in php), the link is made, and the include functions, but when I look at the design view window, all I see is trash that appears to be from the menu system (as opposed to the page that contains the single include command, then all the other stuff on that page).
When I append the command with a straight php include command, I can see the page in the design view, however when I load it, it says the syntax is wrong, and the page fails to load.
The command which results in a working include, but no design view is (the include is contained in a table):
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<?php require_once('../../includes/navmenu/navbar.php'); ?>
</td>
</tr>
</table>
That works - but no view. The one with a view, but does not work is:
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<?php include(<?php require_once('../../includes/navmenu/navbar.php'); ?>
</td>
</tr>
</table>
I'm going to cross-post this to the Dreamweaver board as well - but any input would be greatly appreciated.
Thanks,
//sse
~~~~~~~~~~~~~~~~~~~~~~~~~~
Sean Engle
ssengle@worldnet.att.net
~~~~~~~~~~~~~~~~~~~~~~~~~~
"When you get to the end of
your rope - tie a knot, and
hang on!" ~ FDR