Jump to content

XHTML in PHP

- - - - -

  • Please log in to reply
1 reply to this topic

#1
ravendawson

ravendawson

    Newbie

  • Members
  • Pip
  • 1 posts
I have a problem with displaying an image in a tag like this:

<img src=”bild.php?id=7” />

The image is in a database, so I only can show it through a php-script. When I use the mime application/xhtml xml the image is not displayed in Firefox. When I use the mime-type “text/html” (but still Doctype XHTML1.1) it is displayed. What could be the problem with that, any solution?

#2
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
  • Location:New York, NY
You are using the incorrect MIME type. Since you are displaying an image (and not html), you should use the image/jpg or image/png or another variant.
This tutorial should help you: http://forum.codecal...our-images.html




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users