I have created php code to retrieve data stored in a mysql table. I can retrieve and display all the data in a html table except the images. The images are in the database since I can view them when adding/editing the db. I have tried several different coding schemes but either retrieve the file name or nothing. I have posted code below with the portion in bold that is not working. Suggestions would be appreciated!
$idnt=mysql_result($result,$i,"id");
$pic=mysql_result($result,$i,"picture");
$desc=mysql_result($result,$i,"description");
$cost=mysql_result($result,$i,"price");
?>
<tr>
<td><font face="Verdana"><center><? echo "$idnt"; ?></center></font></td>
<td><img src = <?echo "?pic";?>></center></font></td>
<td><font face="Verdana"><center><? echo "$desc"; ?></center></font></td>
<td><font face="Verdana"><center>$<? echo "$cost"; ?></center></font></td>

Last edited by slipaway; 06-15-2007 at 11:31 AM..
Reason: provide some code for them to edit
|