Go Back   Forum Care Forums > Development Reference Area > Php Development

Reply
 
LinkBack Thread Tools Display Modes
tinymce, php and mysql problem
Old
  (#1)
blueboy
Guest
 
Posts: n/a
Default tinymce, php and mysql problem - 06-02-2007, 08:55 PM

Hi,

I am using tinymce to save news articles with very basic html styling in a
database. This works well upto a point but when I get over a certain number
of characters and then the 'you have an error in your SQL syntax' error. I
am saving in as a LONGBLOB so it should not be a data type mismatch. Any
ideas?

R.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: [PHP] tinymce, php and mysql problem
Old
  (#2)
Guest
Guest
 
Posts: n/a
Default Re: [PHP] tinymce, php and mysql problem - 06-02-2007, 08:55 PM

2007. 05. 29, kedd keltezéssel 10.29-kor blueboy ezt ÃÂ*rta:
> Hi,
>
> I am using tinymce to save news articles with very basic html styling in a
> database. This works well upto a point but when I get over a certain number
> of characters and then the 'you have an error in your SQL syntax' error. I
> am saving in as a LONGBLOB so it should not be a data type mismatch. Any
> ideas?


I'm almost sure this is an escaping issue. Do you use
mysql_real_escape_string() on the stuff you store in the db?

greets
Zoltán Németh

>
> R.
>

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: [PHP] tinymce, php and mysql problem
Old
  (#3)
Darren Whitlen
Guest
 
Posts: n/a
Default Re: [PHP] tinymce, php and mysql problem - 06-02-2007, 08:55 PM

Zoltán Németh wrote:
> 2007. 05. 29, kedd keltezéssel 10.29-kor blueboy ezt ÃÂ*rta:
>> Hi,
>>
>> I am using tinymce to save news articles with very basic html styling in a
>> database. This works well upto a point but when I get over a certain number
>> of characters and then the 'you have an error in your SQL syntax' error. I
>> am saving in as a LONGBLOB so it should not be a data type mismatch. Any
>> ideas?

>
> I'm almost sure this is an escaping issue. Do you use
> mysql_real_escape_string() on the stuff you store in the db?
>
> greets
> Zoltán Németh
>
>> R.
>>


If the mysql_real_escape_string doesn't solve it (which I think it most
likely will), echo out the SQL query its sending and post it here so we
can take a look.

Darren
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top