include syntax

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tat
Forum Newbie
Posts: 11
Joined: Mon Feb 02, 2009 10:56 am

include syntax

Post by tat »

Hi, I am fairly new to php, can someone please explain to me why the images are not appearing when I look up the code in the browser? I am missing something in the syntax?. Thanks

<body topmargin="0" leftmargin="0">

<table cellpadding="0" cellspacing="0" width="752" class="Top" align="center">
<tr>
<td><img src="<?= INCLUDEPATH ?>Images/pinkbar7.jpg" width="750" height="108"></td>
</tr>
</table>

<table cellpadding="0" cellspacing="0" width="752" class="Middle" align="center">
<tr>
<td><img src="<?= INCLUDEPATH ?>Images/Back1.jpg" width="344"></td>
<td><a href="Index.php"><img src="<?= INCLUDEPATH ?>Images/ButtonHome.gif" border="0" width="69"></a></td>
<td><a href="AboutUs.php"><img src="<?= INCLUDEPATH ?>Images/ButtonAboutUs.gif" border="0" width="88"></a></td>
<td><a href="Login.php"><img src="<?= INCLUDEPATH ?>Images/ButtonLogin.gif" border="0" width="67"></a></td>
<td><img src="<?= INCLUDEPATH ?>Images/Back2.gif" width="14"></td>
</tr>
</table>

<table cellpadding="0" cellspacing="0" width="752" class="Middle" align="center">
<tr>
<form action="Search_Proc.php" method="post">
<td class="Color1"><img src="<?= INCLUDEPATH ?>Images/Back3.gif" width="324" height="32"></td>
<td class="Color1">&nbsp;</td>
<td class="Color1">&nbsp;</td>
<td class="Color1"><img src="<?= INCLUDEPATH ?>Images/SearchKeywords.gif" class="Indented4R" width="83" height="6"></td>
<td class="Color1"><input type="text" class="width Indented4R" name="searchTerm"></td>
<td class="Color1"><input type="image" src="<?= INCLUDEPATH ?>Images/ButtonGo.gif" action="Index.php" class="Indented12R" width="27" height="16"></td>
</form>
</tr>
</table>
User avatar
Apollo
Forum Regular
Posts: 794
Joined: Wed Apr 30, 2008 2:34 am

Re: include syntax

Post by Apollo »

1. See posting guidelines, especially nr. 9 please!

2. Exactly what is this 'INCLUDEPATH' thing supposed to be? It's not defined anywhere, right?
mickeyunderscore
Forum Contributor
Posts: 129
Joined: Sat Jan 31, 2009 9:00 am
Location: UK

Re: include syntax

Post by mickeyunderscore »

This is difficult to answer without knowing what the constant INCLUDEPATH contains.

When I get a broken image, I usually right click it and go to properties and check the exact path that it is looking for the image in.
Post Reply