psquillace Posted May 3, 2007 Share Posted May 3, 2007 Hello All: At this link http://www.stevan.com/newsite/index.php You can see that I have a nice header which is being called by this line of code: <?php include ($rel_path . 'includes/header.php'); ?> However a few lines down I have a global menu on the left which will not show with this line of php <?php include ($rel_path . 'includes/left-menu.php'); ?> So my question is, why does one show and not the other? I checked the spelling and even renamed the file thinking it might help but I cannot figure what I did wrong.. the left menu does not have anything in it just a couple of <p> tags and words to test it out but should it have php tags in the file? Any help would be appreciated. Paul Quote Link to comment https://forums.phpfreaks.com/topic/49744-include-works-only-on-one-of-my-files/ Share on other sites More sharing options...
john010117 Posted May 3, 2007 Share Posted May 3, 2007 What is $rel_path? Quote Link to comment https://forums.phpfreaks.com/topic/49744-include-works-only-on-one-of-my-files/#findComment-243948 Share on other sites More sharing options...
corbin Posted May 3, 2007 Share Posted May 3, 2007 Is <p>Home</p> <p>Vision</p> <p>Links</p> <p>Donations</p> <p>Video</p> <p>Archives</p> <p>Music</p> [/quote] Your side bar code? If so, it's in a div with the css attribute "display: none;", so it's not being shown, although it is being sent to the client. ;p [code=php:0] .menutd { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; line-height: normal; font-variant: normal; text-transform: none; color: #ffffff; text-decoration: underline; background-color: #CCCCCC; background-position: left; text-indent: 12px; vertical-align: top; white-space: normal; text-align: left; letter-spacing: normal; word-spacing: normal; float: left; width: 160px; clear: both; padding-top: 20px; padding-right: 5px; padding-bottom: 5px; padding-left: 15px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; position: static; [b]display: none;[/b] margin: auto; height: auto; } Quote Link to comment https://forums.phpfreaks.com/topic/49744-include-works-only-on-one-of-my-files/#findComment-243951 Share on other sites More sharing options...
psquillace Posted May 3, 2007 Author Share Posted May 3, 2007 Yeah, I found that just as I posted. Sorry for the trouble. thanks for the quick response. Paul Quote Link to comment https://forums.phpfreaks.com/topic/49744-include-works-only-on-one-of-my-files/#findComment-243955 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.