magic_quotes_gpc is already disabled by default, and it will be removed completely from PHP 6 an onwards. addslashes will still be there, so you can run it manually, if you want.
You should use PDO and prepared statements. They work across different database systems/sql dialects and (more importantly) they are completely safe against injection type attacks.
The thing is, data usually comes from users, and therefore you have no guarantee as to their contents.







Bookmarks