MYsql - PHP blog problems

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cmadsen
Forum Newbie
Posts: 3
Joined: Fri Aug 04, 2006 6:54 pm

MYsql - PHP blog problems

Post by cmadsen »

I have created a db and one field is defined as a blob. I am using a textarea as the input to this blob field. I have found that the textarea is not transferring the data from the form to the $POST statement. Following is the code that I am using for the textarea:

<textarea type=text name=banner rows="10" cols="60"></textarea>

Need your help.

Thanks
Eric
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Re: MYsql - PHP blog problems

Post by Buddha443556 »

cmadsen wrote:I have created a db and one field is defined as a blob. I am using a textarea as the input to this blob field. I have found that the textarea is not transferring the data from the form to the $POST statement. Following is the code that I am using for the textarea:

<textarea type=text name=banner rows="10" cols="60"></textarea>

Need your help.

Thanks
Eric
Are you actually using "$POST" in the script? If so it should be $_POST with the underline. I was doing that samething yesterday. :oops: Too much Perl programming and not enough PHP.

Welcome to phpDN!
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

You may want to consider making that field a LONGTEXT field. BLOB are usually used for Binary data (Binary Large OBject - BLOB). As for the other, I agree with Buddha... Make sure you are using $_POST instead of $POST, as they are not the same thing.
Post Reply