johnrlhunter Posted February 20, 2007 Share Posted February 20, 2007 Hi I am having a problem with writing the syntax to show an image listed on my database. if I write print $info[image_name] the page will tell the correct image name taken from the database. but I don't know the syntax to make it to display the image which is listed in the mysql server but stored in the pImage folder. Can someone please help and point me in the right direction? I think it must be something like print g src=pImage/$info[image_name]>" ? John Link to comment https://forums.phpfreaks.com/topic/39363-img-srcpimageinfoimage_name/ Share on other sites More sharing options...
trq Posted February 20, 2007 Share Posted February 20, 2007 You really ought to learn html before php. echo "<img src='plimage/". $info['image_name'] ."'>"; Link to comment https://forums.phpfreaks.com/topic/39363-img-srcpimageinfoimage_name/#findComment-189854 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.