0

I just want to ask if there's any possible way to insert values in the database that has an apostrophe?

kareena11
  • 9
  • 3
  • 1
    Read http://bobby-tables.com, http://en.wikipedia.org/wiki/SQL_injection, http://www.php.net/manual/en/security.database.sql-injection.php – Craig Ringer Mar 16 '14 at 13:00

1 Answers1

0

Yes.

You just need to escape it appropriately in your query. Use prepared statements, they will take care of that for you.

Community
  • 1
  • 1
Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335