I’m using a mysql database.
A little example script:
[code=php]
$string = addslashes(“Let’s do it!”);
echo $string;
mysql_query(“INSERT INTO table(field) VALUES(‘” . $string . “‘)”);
The echo() outputs “Let
[code=php]
$string = addslashes(addslashes(“Let’s do it!”));
Then the value in the database is “Let
I’m getting the idea there is some automated stripslashes() before the data enters the database. Do I just need to add the slashes twice or am I doing something wrong or something?