Reply to Re: [PHP] Display picture from MySQL

Your name:

Reply:


Posted by Angelo Zanetti on 06/27/05 17:41

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 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
>>
>>
>
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация