RE: [PHP] Store uploaded files in MySQL-BLOB
| From: | Ben Bleything | Date: | Tue, 10 Jul 2001 14:56:40 +0000 |
| Subject: | RE: [PHP] Store uploaded files in MySQL-BLOB | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57159@lists.php.net to get a copy of this message | ||
Check out http://www.phpbuilder.com/columns/florian19991014.php3.
I've
been using it to maintain image galleries. Works like a champ.
My guess would be that any version of php will upload multiple files...
just use multiple variables =>
Good luck and let us know,
Ben
-----Original Message-----
From: Tom Gitzinger [mailto:tom_gitzinger@gmx.de]
Sent: Tuesday, July 10, 2001 2:39 AM
To: php-general@lists.php.net
Subject: [PHP] Store uploaded files in MySQL-BLOB
Hi friends,
could anybody tell me how I best store one or several uploaded files in
a
MySQL database (as a BLOB). I use PHP 3.
Let's say I have the variable $userfile. Is it possible to simply insert
this into the database?
$query = "INSERT INTO ... (file) VALUES (" . $userfile . ");
By the way: which version of PHP 3 do you need to upload several files
at
once?
Tom
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
GMX Tipp:
Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a