ok the chancer, i did what you suggested but the script still isnt workin. all im getting is what you can see in the attched screen shot.. any help would be great..
the code is below..
<?php
$proid=$_get['select'];
if (empty($proid)){
///set default ID
$proid=1;
}
mysql_connect ("localhost","Mike","studioh3o") or die(mysql_error() . "<B>Can't connect to the server</B>");
mysql_select_db("store") or die(mysql_error() . "<B>Specified database does NOT exist</B>");
$query = "select description, price, image, product_id from products WHERE product_id = $proid ";
$result = mysql_query($query) or die(mysql_error() . "<B>Bad Query</B>");
$num= mysql_num_rows($result);
while ($row = mysql_fetch_array($result)) {
$img=$row['image'];
$desc=$row['description'];
$money=$row['price'];
}
?>
the above is before the <html> tags
<form action="m_shirt3.htm" method="get" name="list" id="list">
<div align="center">
<select name="select">
<option value="1" selected>Truth</option>
<option value="2">Integrity</option>
<option value="3">Freedom</option>
<option value="4">Role Model</option>
<option value="5">Grace</option>
</select>
<input type="image" name="Submit2" value="Select" src="images/select.jpg">
</div>
</form></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#99CCFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<!-- put php scrupt here for images -->
<td><?php echo'<img src=\"http://www.heismy.com/beta/test/images/$img\n">'?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" bgcolor="#99CCFF" height="11">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFFFFF">back of shirt</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#99CCFF" height="19">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td><?php echo '$desc'?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#99CCFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFFFFF"><?php echo'$money'?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#99CCFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFFFFF">Add to cart/view cart</td>
</tr>
</table>
</td>
</tr>
</table>
above is in between <html>tags..
any help would be great.. thanks in advance.
Mike