List:General Discussion« Previous MessageNext Message »
From:M. Bader Date:July 16 2003 8:59pm
Subject:RE: How can I display images from a mySQL Database in a web page?
View as plain text  
>
> <image start: jpeg>
> </image>
>


use this:

	echo '<img src="'.mysql_result($conn, 0, 0).'" alt="">';

where "0,0" is the result-set index for your mysql field. you might
use other mysql functions of course, but the place to put the output
in is the same

the html-source code will look like it is only a normal image path,
but the server sends the binary data too


hope that helps
Maik



Thread
How can I display images from a mySQL Database in a web page?Dan Anderson15 Jul
  • Re: How can I display images from a mySQL Database in a web page?colbey15 Jul
  • Re: How can I display images from a mySQL Database in a web page?Partap Davis16 Jul
    • Re: How can I display images from a mySQL Database in a web page?William R. Mussatto16 Jul
    • Re: How can I display images from a mySQL Database in a web page?Dan Anderson16 Jul
      • Re: How can I display images from a mySQL Database in a web page?Keith C. Ivey16 Jul
      • RE: How can I display images from a mySQL Database in a web page?Jef S16 Jul
  • Re: How can I display images from a mySQL Database in a web page?Peter Burden16 Jul
  • RE: How can I display images from a mySQL Database in a web page?M. Bader16 Jul