i would like to use a name stored in a mysql database to display an image.
i attempted it with this code.
img src="pic/<?php echo $row['photo']; ?>" width="300" height="226" />
with no luck, [is there some other way.
i call my data with
$scientificname = "Dascyllus trimaculatus";
$query = MYSQL_QUERY("SELECT * FROM `fish` WHERE `scientificname`='$scientificname' LIMIT 1");
while($row=mysql_fetch_assoc($query)){
?>