Jump to content

Simple Question, echo an image


jonw118

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.