SyntaxFix
Write A Post
Hire A Developer
Questions
Another way to handle single and double quotes is:
function mssql_escape($str) { if(get_magic_quotes_gpc()) { $str = stripslashes($str); } return str_replace("'", "''", $str); }