Jump to content

help with image please...


meomike2000

Recommended Posts

i am trying to add an image to my webpage. the image tag is outside the <?php ?> tags, and the image is a .jpg. i know that the src is correct but image will not display. the  image is in the same folder that the page it is to be on. all that displays is the alt. text.    here is the code that i used. <img src="image.jpg" height="100" width="100" alt="image" />. but only the alt text displays.........

 

never had this problem  before but i have never added an image to a page with a .php extension.

 

thanks mike....

Link to comment
https://forums.phpfreaks.com/topic/143078-help-with-image-please/
Share on other sites

If you are 100% certain the path is correct it could be a corrupt image file. I've seen problem when IE could not display an image that FireFox could and optimizing the image with photoshop fixed the problem. 

 

But again triple check to make sure the file name and path is all correct.  Then go to using and image application like photoshop to optimize the image.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.