Inserting ' into mysql fields
Posted: Sun Sep 24, 2006 10:01 am
Hello,
When I'm inserting the char ' php thinks I'm done writing, altough it's only part of my sentence.
For example, if I have a want to enter a sentece: I'm here
Php will read it like this
What should I do?
Thank you.
When I'm inserting the char ' php thinks I'm done writing, altough it's only part of my sentence.
For example, if I have a want to enter a sentece: I'm here
Php will read it like this
Code: Select all
mysql_query("INSERT INTO table(field) VALUES('I'm here')")Thank you.