Bluehost.com Web Hosting $6.95

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

This is a discussion on Re: [PHP] How do I dump a blob or text into a mySQL Database? within the PHP General forums, part of the PHP Programming Forums category; Dan Anderson wrote: > I'm trying to split up a file and dump it into a mySQL database BLOB. &...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-14-2003
Brad Pauly
 
Posts: n/a
Default Re: [PHP] How do I dump a blob or text into a mySQL Database?

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?


Is $buffer empty? I would start there.

- Brad



Reply With Quote
  #2 (permalink)  
Old 07-14-2003
Burhan Khalid
 
Posts: n/a
Default Re[2]: [PHP] How do I dump a blob or text into a mySQL Database?

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:23 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0