MySQL Forums
Forum List  »  General

Re: Problems with a INSERT of a textarea
Posted by: Rafael Muller
Date: November 17, 2004 10:26PM

Delta:

Thanks for all the help. Finally got this to work properly. What I ended up doing was using the php function addslashes http://www.php.net/addslashes . This function adds backslashes infront of single quote, double quote, backslash and NUL.

With this I am able to get the INSERT to properly work.

Thanks for the help. The pointers got me going in the right direction.

Raf

delta wrote:
> Run the text through
> http://us2.php.net/mysql_real_escape_string which
> will return a properly escaped string. You could
> do it by hand with str_replace but
> mysql_real_escape_string does it all for you.

Options: ReplyQuote


Subject
Written By
Posted
Re: Problems with a INSERT of a textarea
November 17, 2004 10:26PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.