insert MySQL data as image into html
Posted: Fri Jul 13, 2007 4:46 pm
I want to make a page which uses all the data from a MySQL field to create a gallery of images.
all of the entries in the field are the same dimensions and are in the form of filename.gif
when a new entry is added to the database i want a another image to appear
this code pretty much does what i need but i dont have a clue where to put the img tags.
Any ideas?
all of the entries in the field are the same dimensions and are in the form of filename.gif
when a new entry is added to the database i want a another image to appear
Code: Select all
<?php
$result = mysql_query("SELECT * FROM thumbnails ORDER BY id");
while($row = mysql_fetch_array($result))
{
echo $row['gif'];
echo "<br />";
}
mysql_close($con);
?>Any ideas?