Re: How to call image from mySql to php file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kevin Waterson wrote:
> This one time, at band camp, "Haydar TUNA" <haydartuna@xxxxxxxxxx> wrote:
> 
>> Hello,
>>        Firstly, your image table field should be BLOB field then you create 
>> a image file (for example image.php). in this file, if your application is 
>> more secure, you can control the session variables. You get key column of 
>> your BLOB table (for example id, studentnumber and so on) with session 
>> variables, GET variables or any way. I always get this column with SESSION 
>> variables because it is more secure. After this, for get variables you can 
>> call the image to your main application from image.php file with  like the 
>> following HTML1 code. for session variables you can call the image to your 
>> main application from image.php file with  like the following HTML2 code.
> 
> Here is a little how to about storing images in mysql
> 
> http://phpro.org/tutorials/Storing-Images-in-MySQL-with-PHP.html

While I appreciate this concept and indeed use it myself, it should be
noted that the OP was *not* talking about storing the images in the DB
itself. He was talking about storing a filename which he then used in
his html.

Col

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux