Hi thanks for any help.....have images stored in folder and its name in stored in db as image_name how do i get those images back out? what is the syntax?..... thought it might be something similiar to this?....
<body>
<?php
$db = mysql_connect("localhost", "root");
mysql_select_db("antiques",$db);
$result = mysql_query("SELECT * FROM general",$db);
if ($myrow = mysql_fetch_array($result)) {
echo "<table border=1>\n";
echo "<tr><td>Name</td><td>Description</td><td>Price</td><td>Image Name</td></tr>\n";
do {
printf("<tr><td>%s </td><td>%s </td><td>%s </td><td>%s </td></tr>\n", $myrow["name"], $myrow["description"], $myrow["price"], $myrow["<img src=\"images/"image_name."\">"]);
} while ($myrow = mysql_fetch_array($result));
echo "</table>\n";
} else {
echo "Sorry, no records were found!";
}
?>
</body>