View Single Post
Old 07-06-07, 01:03 PM   #4
ViN86
 
Join Date: Mar 2004
Posts: 15,486
Default Re: Storing Text Area into MySQL Database...

Quote:
Originally Posted by evilghost
1) I use TEXT (65535 characters). Other choices can be BLOB (binary). In your case TEXT would be better than CHAR or VARCHAR. See http://dev.mysql.com/doc/refman/5.0/...uirements.html

2) TEXT is 65535, or 2^16

3) $_POST['Comments'] but you better be sure you substr(mysql_escape_string($_POST['Comments']),0,65535)
thx ghost didnt know about that 3rd one.
ViN86 is offline   Reply With Quote