amol0010
08-17-2007, 12:18 AM
Hi,
I have a database named dmtp with tables cities and markers.
I need to display an image stored as mediumblob in markers, in dmtp.
now I am using the syntax like this -
$result = mysql_query("SELECT cities.cityname, cities.citybuslink,markers.picture, markers.information FROM cities, markers where markerid = 1 AND markers.cityid = cities.cityid
");
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" .$row['picture']. "</td>";
echo "<td>" . $row['information'] . "</td>";
echo "</tr>";
}
However, the part where the picture should be displayed shows all garbage values, any idea on how to display the actual image stored inside the database ??
Thanks
I have a database named dmtp with tables cities and markers.
I need to display an image stored as mediumblob in markers, in dmtp.
now I am using the syntax like this -
$result = mysql_query("SELECT cities.cityname, cities.citybuslink,markers.picture, markers.information FROM cities, markers where markerid = 1 AND markers.cityid = cities.cityid
");
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" .$row['picture']. "</td>";
echo "<td>" . $row['information'] . "</td>";
echo "</tr>";
}
However, the part where the picture should be displayed shows all garbage values, any idea on how to display the actual image stored inside the database ??
Thanks