Jump to content

Include image directory question


butzie225

Recommended Posts

Ok. I have a question, I have this code:

               <div id="sidebar1" class="sidebar">
		<ul>
			<li>
				<h2><a href="./bots/">Bots</a></h2>
				<ul>
					<li><img src="./images/icons/combat.png" alt="xFighter Image"/>  <a href="./bots/fighter/">xFighter </a><img src="./images/star.gif" alt="Star" title="Top-Seller"/ ></li>
                                                <li><img src="./images/icons/slayer.png" alt="xSlayer Image"/>  <a href="./bots/slayer/">xSlayer</a></li>
				</ul>
			</li>
		</ul>
	</div>

In my main directory ( / ), i have a file name called leftmenu.php.

Now, in /bots/index.php I call:

<?php include('../leftmenu.php')?>

But, whenever I open my bots/index.php, all the images are the text alts, how do I fix this?

    *  xFighter Image xFighter Star
    * xSlayer Image xSlayer

Link to comment
https://forums.phpfreaks.com/topic/173354-include-image-directory-question/
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.