Re[2]: [PHP] How do I dump a blob or text into a mySQL Database?

From: Date: Mon, 14 Jul 2003 20:31:56 +0000
Subject: Re[2]: [PHP] How do I dump a blob or text into a mySQL Database?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-155169@lists.php.net to get a copy of this message
On Monday, July 14, 2003, 8:51:22 PM, Brad wrote: BP> Dan Anderson wrote: >> 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? BP> Is $buffer empty? I would start there. I would also look at serialize() -- Regards, Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com

« previous php.general (#155169) next »