Code: Select all
123<'k"isis123&q>When this var is made available to the recieving PHP-script, it has been addslashed, see magic-quotes-gpc
I use MySQL and PHP.
Let's say I want to perform a data insertion:
Code: Select all
mysql_query("insert into table1 set Var1='{$_POSTї'Fieldname1']}', Var2='{$_POSTї'Fieldname2']}'");MySQL recieves the data '123<''k\"isis123&q>'. Will the \" be interpreted correctly, that is, that the backslash is removed in the database data
I could test this on my computer and learn by myself, but I am far from the machine right now, and I believe It might be good for all of us newbies to read the anwers to this post.