bvrtrimmer
Programmer
Hi I have the following table (real simple): <br><br>CREATE TABLE txttest (comments TEXT); <br><br>I then use a <textarea> to type in my comment.<br>This text then gets inserted into the table above. <br><br>I was told to use: <br>$comments=urlencode($comments); <br>before inserting into my database<br> <br>This WORKS when I type in something like: <br>"this is a comment line" <br>(looks like: this+is+a+comment+line)<br> <br>BUT if I type in something like: <br>"this is a comment line, <br>this is another comment line"<br> <br>(looks like: this+is+a+comment+line%2C%0D%0Athis+is+another+comment+line) <br><br>I get this error: <br>Error in executing INSERT INTO txttest (comments)<br>VALUES('this+is+a+comment+line%2C%0D%0Athis+is+another+comment+line') <br>error:1065 Query was empty <br><br>ANY IDEAS?? <br><br>Thanks <br>Mike