single quote

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I am trying to insert a string with single quote ie can't but  mysql fails
to insert record how do I get round this.

Re: single quote

ntlnews wrote:

Quoted text here. Click to load it

You must "escape" the single-quote like  'What's what'

mysql_escape_string() and mysql_real_escape_string()

Site Timeline