If statement i think
Posted: Wed Jul 02, 2003 5:09 am
Hey i am trying to show a picture that is the name of a id key for a car. The thing i am trying to work out, is that is there is not a picture, how what i put a message saying 'awaiting picture'
code
Many thanks
code
Code: Select all
<?php
<?php $sql = 'SELECT * FROM cars ' ;
$rs=mysql_query($sql,$db);
while ($r = mysql_fetch_array($rs))
{
$carid=$r["carid"];
$make=$r["make"];
$engine=$r["engine"];
$year=$r["year"];
$des=$r["des"];
$mot=$r["mot"];
$price=$r["engine"];
?>
<tr>
<td bgcolor="#99CCFF"> <strong><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">
<?php echo $make ?></strong></td>
</tr>
<tr>
<td><img src = "uploaded/<?php echo $carid?>.jpg"></td>
?>Many thanks