jduffell Posted April 11, 2008 Share Posted April 11, 2008 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 Link to comment https://forums.phpfreaks.com/topic/100665-php-image/ Share on other sites More sharing options...
laffin Posted April 11, 2008 Share Posted April 11, 2008 <td><IMG SRC='".$row['image']."'></td> Link to comment https://forums.phpfreaks.com/topic/100665-php-image/#findComment-514804 Share on other sites More sharing options...
jduffell Posted April 11, 2008 Author Share Posted April 11, 2008 Gr8 that works perfect, i placed the . in the wrong place ta very much Link to comment https://forums.phpfreaks.com/topic/100665-php-image/#findComment-514816 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.