FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Images retrives
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Images retrives [message #175967 is a reply to message #175966] Fri, 11 November 2011 12:19 Go to previous messageGo to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 11/11/2011 12:45, sritullimilli(at)gmail(dot)com escribió/wrote:
> i didn't get the images from mysql database through php script
> i am get this error
>
> <img src='���JFIF
> ...

The usual way to insert images in web sites is to use the <img> tag and
write the picture's URL in the src attribute. E.g.:

<img src="picture.jpg">

https://developer.mozilla.org/En/HTML/Element/Img

While you can actually paste the full picture into your HTML document,
it's not as simple as that: you'd have to add a prefix, escape the image
properly and wait for IE users to complain:

http://es.wikipedia.org/wiki/Data:_URL

I guess you want to use the traditional approach. You have to write two
different scripts: one that generates the HTML and one that generates
the picture.


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: displaying random images with an appropriate caption
Next Topic: Why fsockopen() generates a Warning on timeout?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 20:50:58 GMT 2024

Total time taken to generate the page: 0.03998 seconds