Inserting BLOB data from a CGI file upload field
| From: | George A. Fitch III | Date: | Thu, 09 Nov 2000 14:30:29 +0000 |
| Subject: | Inserting BLOB data from a CGI file upload field | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-4334@lists.php.net to get a copy of this message | ||
Whassup,
I'm trying to insert a PDF file specified by a CGI file upload field into
a MySQL database as BLOB data, but I can't figure out how. I'm
able to do it in Perl DBI with the bind_param thing, but I can't find a
similar function in PHP. I also can't find a function that's analogous
to the quote function in the Perl DBI, which I'll need to toss the entire
file into an "insert into" SQL statement.
Any suggestions?
Gaf