Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.