jonw118 Posted December 19, 2008 Share Posted December 19, 2008 Hi there, currently my script has: <? $sql="select thumb from inputinfo where id='$id'"; $rez=mysql_query($sql,$dblnk); $row=mysql_fetch_array($rez); echo $row['thumb']; ?> But that just prints out the URL to the image. I want it to display the image. Here's what I tried, but no-go. I'd appreciate any help... <? $sql="select thumb from inputinfo where id='$id'"; $rez=mysql_query($sql,$dblnk); $row=mysql_fetch_array($rez); echo $row[admin/<? echo $row[thumb];?>]; ?> Link to comment https://forums.phpfreaks.com/topic/137713-simple-question-echo-an-image/ Share on other sites More sharing options...
.josh Posted December 19, 2008 Share Posted December 19, 2008 echo "<img src='{$row['thumb']}' />"; Link to comment https://forums.phpfreaks.com/topic/137713-simple-question-echo-an-image/#findComment-719832 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.