Page 1 of 1

how, inserting quotes into DB, how?

Posted: Fri Feb 20, 2009 2:31 pm
by gphp
I would like to insert text that contains quotes and other special characters into DB(MySql). Is there a way to take the text and make an insert without bailing out because of these special characters?
Or, what is the best way to pass the single quotes into the database?
Thanks.

Re: how, inserting quotes into DB, how?

Posted: Fri Feb 20, 2009 2:38 pm
by p3rk5

Re: how, inserting quotes into DB, how?

Posted: Fri Feb 20, 2009 4:39 pm
by VladSun
mysql_real_escape_string() is better