php/mysql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anfetienne
    Contributor
    • Feb 2009
    • 424

    php/mysql

    hi,

    im testing out tniymce to entering and formating text to save to a database....whe n i save the information i get this error message

    "Error in query:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's leading Car Supermarket groups, offering the best cars at the best UK prices"

    I gather that the single quotes are the problem.....how can i get around this problem?
  • code green
    Recognized Expert Top Contributor
    • Mar 2007
    • 1726

    #2
    Use PHP's mysql_real_esca pe_string()

    Comment

    Working...