Re: Display picture from MySQL
| From: | Georgi Ivanov | Date: | Mon, 27 Jun 2005 13:19:20 +0000 |
| Subject: | Re: Display picture from MySQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-217685@lists.php.net to get a copy of this message | ||
/*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 tutorial/template/code, how to display a picture on web
> pages which the picture is stored on MySQl database.
>
>
> Thanks in advance,
> regards