Nice forum
I’m having trouble displaying an image I have stored in a db and copied to the filesystem.
[php]$data = mysql_query(“SELECT * FROM table_name WHERE division=‘d1’ ORDER BY date DESC LIMIT 1”);
while ($image = mysql_fetch_array($data))
{
$template->assign_var(‘D1_TABLE’, “<img src=http://www.my_site/images/”.$image[‘content’] .">");
}
// put following in to test, incase above had syntax problem
Echo “<img src=http://www.my_site/images/”.$image[‘content’] .">";[/php]
I see a broken link for the image on the page and it’s address is showing as d1.gif. The only problem is, the image within the folder is named something random like 3423452.gif.
Thanks in advance for your time.