Jump to content

images not displaying on wamp server


olamsco2510
 Share

Recommended Posts

1. make sure the file is there.

 

2. make sure the filename is exact including upper and lower case.

 

also, "<IMG SRC=image/kitten.jpg>" may need to be "<IMG SRC="image/kitten.jpg">"

Edited by niche
Link to comment
Share on other sites

Use echo instead, and if you use same double quotes within text string you should escape them with

print ("<img src="image/kitten.jpg">");print ("<img src="image/church.jpg">");

using echo

echo "<img src="image/kitten.jpg">";echo "<img src="image/church.jpg">";

My preferred way without need of escaping

echo '<img src="image/kitten.jpg">';echo '<img src="image/church.jpg">';
Edited by dsonesuk
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...