zero-perfoliate
zero-perfoliate

Author Topic: Mysql  (Read 560 times)

Offline larrywcc

  • New PHP Members
  • Posts: 1
  • Karma: +0/-0
Mysql
« on: December 26, 2010, 04:07:04 PM »
When I update a table from php if the table be updated has ' in the words I get an error. If taken out it works fine.  How do I fix this so it writes it with the ' with the words ?

Offline cwarcarblue11

  • PHP Problem Solvers
  • *****
  • Posts: 112
  • Karma: +1/-0
    • C2C Technology
Re: Mysql
« Reply #1 on: December 31, 2010, 09:54:59 AM »
Use mysql_real_escape_string($text)

 

zero-perfoliate