How do I dump a blob or text into a mySQL Database?
| From: | Dan Anderson | Date: | Mon, 14 Jul 2003 17:39:46 +0000 |
| Subject: | How do I dump a blob or text into a mySQL Database? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-155130@lists.php.net to get a copy of this message | ||
I'm trying to split up a file and dump it into a mySQL database BLOB.
Wherever I run the query:
mysql_query("INSERT INTO table (field) VALUES ('{$buffer}')");
Nothing ever shows up in the table -- whethere field is a text or a blob
and whether I dump in text or binary. Oddly enough when I run the query
I get no error, and can print it and run it through a mySQL terminal,
and it works.
Anyone have any ideas?
Thanks in advance,
Dan