Jump to content

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

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.