Thursday 25 April 2013

retrieve images from mysql XAMPP - php


<html>
<head>
</head>
<body>
<?php
mysql_connect("localhost","root","");
mysql_select_db("Occumen");
$res=mysql_query("select Photo from dbvalues");
echo"<table>";
while($row=mysql_fetch_array($res))
{
echo"<tr>";
echo"<td>";?><img src="<?php echo $row["Photo"];?>" height="150" width="150"><?php echo"</td>";
echo"</tr>";
}
echo"</table>";
?>
</body>
</html>

No comments: