Jump to content

Include works only on one of my files?


psquillace

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/49744-include-works-only-on-one-of-my-files/
Share on other sites

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;
}

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.