hi
My images are stored in a folder images which is a sub folder to the root. and in a folder called design which is also a sub folder to the root I have a file called banner. The file banner is included on each page of my web site.
my include statement looks like this for all file held in the root directory
[code=php]
include(‘design/banner.php’) ;
the problem I’m having is getting the image to display which is part of the banner on pages that are held within a folder.
code to included the banner on pages held in a folder
[code=php]
include(‘../design/banner.php’) ;
my banner code. how do I get the image to always display
[code=php]
<form name=”search” method=”post” action=”../etreasures/searchResults.php”>
<div style=”float:right; padding:2px; background:#20718c;”>
<p><input name=”search” type=”text” style=”font-size:small;” onClick=”this.value=”” VALUE=”Start new search ” size=”20″ />
<input type=”submit” name=”searchSubmit” value=”Search” />
</p>
</div>
</form>
<div style=”width:800px; margin: 0 auto 0 auto; background-image: url(‘images/logo.gif’);background-repeat: no-repeat; background-position: left; height:150px;”>
<div style=”margin-left:200px;”><p style=”text-align:center;”> </p>
<h2 style=”text-align:center;”>KEEP 100% of YOUR CASH</h2>
</div>
</div>
<div class=”bannerBottom”>
<ul>
<li>Today: <? echo date(“Y-M-d”); ?></li>
<li></li>
<li></li>
<li></li>
</ul>
<br clear=”left”>
</div>
</p>