Re: Insert an image in a Mysql table

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

 




> > I have created a MySQL table with a blob field and I don’t know how
> > to insert an image to it. Help me please because I am going crazy.
>

 I store in the blob not an image but the string:
 img[]=path/file.jpg&description=&var[]= etc and so on for any number of
 images and corresponding details.  Then retrive the string as $images with
a
 query as usual and use:

parse_str($images[0]); /* GIVES ARRAY $img AND $description etc */

Regards,

John

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux