RE: [PHP] inserting blobs

From: Date: Wed, 12 Jul 2000 18:30:39 +0000
Subject: RE: [PHP] inserting blobs
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-6214@lists.php.net to get a copy of this message
Thanks, there was one difference in the way I was doing it- I was putting it in right, but I was using a "mysql_fetch_array" to get it out. This example used "mysql_result", a bit more primitive but it does it right. I changed to that, and it worked. > -----Original Message----- > From: mohrt@ispi.net [mailto:mohrt@ispi.net]On Behalf Of Monte Ohrt > Sent: Wednesday, July 12, 2000 11:55 AM > To: benton@goatrider.com > Cc: php-general@lists.php.net > Subject: Re: [PHP] inserting blobs > > > Benton Jackson wrote: > > > > Hi, > > How do you read a binary file and insert it into a "blob" field > in mysql? I > > tried "addslashes" and stuck it in an insert statement, but the > data seems > > to get messed up. > > > > I read the data with "fread", which claims to be binary safe. > > > > http://www.phpbuilder.com/columns/florian19991014.php3 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#6214) next »