i have my sql database with table content as [image varchar(22)]
stored the value of image as url location of image as images/tree.jpg
how to retrive it with php
<?php
$link=mysql_connect("localhost","root","");
mysql_select_db("bookstore");
$qry="select * from books where btype='$cat'";
$res=mysql_query($qry,$link);
while($row=mysql_fetch_array($res));
{
print " <img src=http://localhost/zack/PROJECT/".$row['image'] ." width=323px >";
}
?>
That should work if SELECT statement is correct and image realy resides in /zack/PROJECT subfolder of your web root folder.