by using the backlash character effectively
. The backlash character is used to escape
these special characters without any problems. PHP
However, when the string is inserted dynamically, you should avoid any characters that can cause an error (apostrophe, quote or double quote, backslash).
function addslashes (ch) (
ch.replace ch = (/ \ \ / g, "\ \ \ \")
ch.replace ch = (/ \ '/ g, "\ '")
ch.replace ch = (/ \ "/ g," \ \ \ "")
Published by aakai1056
Latest update on February 6, 2012 at 10:27 AM by Paul Berentzen.