hob_goblin wrote:it does practically the same thing, but i figured since he's not using the images as links so people wouldn't have to worry about it

Tried it, but it didn't work. Should my path be something else? In the table I only list ring2.jpg. and the pictures are located in my www directory on the unix server and copies are also in the cgi-bin directory. I have tried different variations of the img source tag below to include the www, cgi-bin, etc, but still no luck.
Here is my entire code:
#!/usr/local/bin/php
<html>
<head>
<title>Show available products</title>
</head>
<body><body bgcolor=beige>
<center><A HREF="
http://nova.umuc.edu/~em680a10/diamondhome.html">Back to Php Home Page</A>.<br><br>
<h1> Jewelry to love </h1>
</center>
<?
@ $db = mysql_pconnect("localhost", "em680a10", "3s8d5m2f");
if (!$db)
{
echo "Error: Could not connect to database. Please try again later. ";
exit;
}
mysql_select_db("em680a10");
$query = "select * from products";
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
echo "<P> <strong> Number of products available: </strong> ".$num_results."</p>";
for($i=0; $i<$num_results; $i++)
{
$row = mysql_fetch_array($result);
echo "<P><strong>Product Name : </strong>";
echo htmlspecialchars( stripslashes($row["name"]));
echo "<br><strong> Product Description: </strong> ";
echo htmlspecialchars (stripslashes($row["description"]));
echo "<br><strong> Price: </strong></br> ";
echo htmlspecialchars (stripslashes($row["price"]));
echo "<img src='
http://www.umuc.edu/~em680a10/";
echo $row["image"];
echo ">";
echo "<br><strong> Product ID: </strong>";
echo htmlspecialchars (stripslashes($row["productid"]));
echo "</p>";
}
?>
<A HREF="
http://nova.umuc.edu/~em680a10/phphome.html">Back to Php Home Page</A>.<br><br>
</body>
</html>