ydoisuck Posted March 22, 2011 Share Posted March 22, 2011 How do i display an image from my directory?!? :S I don't mean to be lazy and just ask people on here, I have researched it online but can't seem to find a quick simple answer. Thanks People!! Quote Link to comment https://forums.phpfreaks.com/topic/231382-really-simple-quick-q/ Share on other sites More sharing options...
MatthewJ Posted March 22, 2011 Share Posted March 22, 2011 With the image tag? Quote Link to comment https://forums.phpfreaks.com/topic/231382-really-simple-quick-q/#findComment-1190800 Share on other sites More sharing options...
ydoisuck Posted March 22, 2011 Author Share Posted March 22, 2011 yh no worries, I worked it out i was being a bit dumb. For those who didn't know (can't imagine there are a lot of you) it was: echo '<img src="images/yourimage.jpg" />'; Quote Link to comment https://forums.phpfreaks.com/topic/231382-really-simple-quick-q/#findComment-1190802 Share on other sites More sharing options...
MrXHellboy Posted March 22, 2011 Share Posted March 22, 2011 Dont forget the alt="" attribute = required Quote Link to comment https://forums.phpfreaks.com/topic/231382-really-simple-quick-q/#findComment-1190811 Share on other sites More sharing options...
Maq Posted March 22, 2011 Share Posted March 22, 2011 I have researched it online but can't seem to find a quick simple answer. That's a little hard to believe. Quote Link to comment https://forums.phpfreaks.com/topic/231382-really-simple-quick-q/#findComment-1190916 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.