Page 1 of 1

MYsql - PHP blog problems

Posted: Fri Aug 04, 2006 7:46 pm
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

Re: MYsql - PHP blog problems

Posted: Fri Aug 04, 2006 8:07 pm
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!

Posted: Fri Aug 04, 2006 9:40 pm
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.