butzie225 Posted September 6, 2009 Share Posted September 6, 2009 Ok. I have a question, I have this code: <link href="./default.css" rel="stylesheet" type="text/css" media="screen" /> <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="xFighter Image"/> <a href="./bots/slayer/">xSlayer</a></li> </ul> </li> </ul> </div> In my main directory, 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? Link to comment https://forums.phpfreaks.com/topic/173352-directory-help/ Share on other sites More sharing options...
saltedm8 Posted September 7, 2009 Share Posted September 7, 2009 as long as your roots are right, in your html you have ./images/icons/combat.png on all your image roots, you are missing a second dot ../images/icons/combat.png Link to comment https://forums.phpfreaks.com/topic/173352-directory-help/#findComment-913815 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.