[PHP] Display picture from MySQL

2005-06-27 Thread Bagus Nugroho
Hi All, I'm looking for tutorial/template/code, how to display a picture on web pages which the picture is stored on MySQl database. Thanks in advance, regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Display picture from MySQL

2005-06-27 Thread Greg Donald
On 6/27/05, Bagus Nugroho [EMAIL PROTECTED] wrote: I'm looking for tutorial/template/code, how to display a picture on web pages which the picture is stored on MySQl database. You can download a copy of my image rating script and have a look at the image.php. http://destiney.com/Scripts --

Re: [PHP] Display picture from MySQL

2005-06-27 Thread Georgi Ivanov
/*Fetch the image :*/ $res=mysql_query(select picture from pics_table where id=1) or die(err); $line=mysql_fecth_array($res); /*Send headers*/ header(content-type: image/png); echo $line[picture]; On Monday 27 June 2005 15:38, Bagus Nugroho wrote: Hi All, I'm looking for

Re: [PHP] Display picture from MySQL

2005-06-27 Thread Angelo Zanetti
or you could just store the path to where the directory is in the database and go find the file according to the path and filename. HTH Georgi Ivanov wrote: /*Fetch the image :*/ $res=mysql_query(select picture from pics_table where id=1) or die(err); $line=mysql_fecth_array($res); /*Send

Re: [PHP] Display picture from MySQL

2005-06-27 Thread Esteamedpw
Google is your friend. _http://forums.mysql.com/read.php?20,17671,27914_ (http://forums.mysql.com/read.php?20,17671,27914)