Meekay Posted March 12, 2007 Share Posted March 12, 2007 Hello, i'm a bit of a spaz. But anyway... I have images stored in a folder on the server, and the file names are stored in a mysql database. Intead of displaying the file name, i want to display the image. Simple! $sql = "SELECT col_2, col_19 FROM ft_form_1"; $query = mysql_query($sql); while($row = mysql_fetch_assoc($query)){ echo $row['col_2'].'<br />'; echo $row['col_19'].'<br />'; I would really appreciate you help. Thanks, Link to comment https://forums.phpfreaks.com/topic/42383-solved-how-to-display-images-from-url/ Share on other sites More sharing options...
papaface Posted March 12, 2007 Share Posted March 12, 2007 like this: $sql = "SELECT col_2, col_19 FROM ft_form_1"; $query = mysql_query($sql); while($row = mysql_fetch_assoc($query)){ echo '<img src="' . $row['col_2'].'"><br />'; echo $row['col_19'].'<br />'; Link to comment https://forums.phpfreaks.com/topic/42383-solved-how-to-display-images-from-url/#findComment-205582 Share on other sites More sharing options...
Meekay Posted March 12, 2007 Author Share Posted March 12, 2007 thank you Link to comment https://forums.phpfreaks.com/topic/42383-solved-how-to-display-images-from-url/#findComment-205584 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.