Jump to content

PHP Image


jduffell

Recommended Posts

Hi i'm using php to retrieve values from a mysql data base, however i want to insert the image value into an img tag, so that the browser displays an image instead of the URL.

 

My code is

 

<table width='501' border='0' id='data'>
<caption>test</caption>
<tr>
    <td class='title'>Image</td>
    <td class='title'>Title</td>
    <td class='title'>Description</td>
    <td class='title'>Date</td>
</tr>"
;
while ($row=mysql_fetch_array($result)) //loops through results
{
echo "
<tr class='column'>
    <td>".$row['image']."</td>
    <td>".$row['title']."</td>
    <td>".$row['description']."</td>
    <td>".$row['date']."</td>
  </tr>

";

}
echo "</table>";
?>

 

I've attempted wrapping the image tag around this property but have had no luck.

 

Any help Welcome

 

Thanks  :D

Link to comment
https://forums.phpfreaks.com/topic/100665-php-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.