Welcome Guest, Not a member yet? Register   Sign In
escaping quotes when updating db
#3

[eluser]qcsites[/eluser]
You should actually allow it to escape quotes for security purposes then use stripslashes to remove them
Code:
<?php
$str = "Is your name O\'reilly?";

// Outputs: Is your name O'reilly?
echo stripslashes($str);
?>


Messages In This Thread
escaping quotes when updating db - by El Forum - 09-14-2012, 12:18 PM
escaping quotes when updating db - by El Forum - 09-14-2012, 12:30 PM
escaping quotes when updating db - by El Forum - 09-14-2012, 12:43 PM
escaping quotes when updating db - by El Forum - 09-14-2012, 12:52 PM
escaping quotes when updating db - by El Forum - 09-14-2012, 01:02 PM
escaping quotes when updating db - by El Forum - 09-14-2012, 01:51 PM
escaping quotes when updating db - by El Forum - 09-16-2012, 07:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB