Jump to content

php menu error


leeutalkin2me

Recommended Posts

I have this page
[a href=\"http://www.troublefreetraveladvisor.com/websitedel.php\" target=\"_blank\"]http://www.troublefreetraveladvisor.com/websitedel.php[/a]

It opens up and displays good in Firefox & IE.

But for some reason, in dreamweaver(what i used to edit code etc) its display its not the same as when uploaded.

I use two Menu's and use Include to add them to my pages
left menu - menu.inc
right menu - menu2.inc

If i change menu2.inc to menu.inc it displays the entire site fine, i solved this earlier today but i must have undone something and its come backagain.

[code]
<div id="menu">
     <?php include("menu.inc"); ?>

    </div>
</div>


    <div id="right"><br />
<?php include("menu2.inc"); ?>

</div><br />
[/code]

The last closed Div command is highlighted in red and on my page in Design view have - untitled document </head> in yellow highlight, but none of it on the uploaded page where it all looks perfect lol

Can anyone explain this ?

Link to comment
https://forums.phpfreaks.com/topic/7630-php-menu-error/
Share on other sites

Don't rely on the Design View feature in Dreamweaver when developing in PHP. Dreamweaver doesn't understand what PHP is so it wont process your menu code, only the raw HTML. This is why DW screws up how a page looks in Design View.

You should always check how your site looks in web browser. Don't test it in for example just IE. Test it in FireFox and Opera to see if your site design is compatiable with most modern browsers.
Link to comment
https://forums.phpfreaks.com/topic/7630-php-menu-error/#findComment-27854
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.