Well,
One simple solution is to use escaped quotation in your Mysql statement(either insert or update). that is,
UPDATE tableName SET key = \"$value\";
yes, magic_quotes_gpc is turned on to make you worry about one thing less.
Lars Skjoldby wrote:
Hello.
I've experienced some problems when I insert text from a textarea copied from e.g. Word.
When the word document have characters as:
’
–
”
these will be insert into the table like this:
’
–
”
When I use phpMyAdmin to make a sql-file backup of the tabels, I always get an error when restoring the phpMyAdmin sql file because of the above tags.
How do I make a replace function so I can be sure that all the tags thats gives me trouble, is replaced with a non-trouble tag.
/lars