single quote

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ntlnews

    #1

    single quote

    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.


  • noone

    #2
    Re: single quote

    ntlnews wrote:
    [color=blue]
    > 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.[/color]

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

    mysql_escape_st ring() and mysql_real_esca pe_string()

    http://dev.mysql.com/doc/refman/5.0/...pe-string.html



    Comment

    Working...