Re: Insert an image in a Mysql table

From: Date: Sun, 21 Mar 2004 11:10:07 +0000
Subject: Re: Insert an image in a Mysql table
Groups: php.db 
Request: Send a blank email to php-db+get-33581@lists.php.net to get a copy of this message
> > 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

« previous php.db (#33581) next »