SQL Injection and PHP

Newbie Spellweaver
Joined
May 18, 2013
Messages
74
Reaction score
7
I know that mysql_* is deprecated in newest versions of php, but i want know how i can protect my system against advanced sql injection. I know too that today use PDO for mysql connect, but i dont want use PDO so far, i need continue in mysql_* for a short time ago.

Today i use this:
mysql_real_escape_string($string);

Regards,
Celso
 
Just don't use MySQL, just use MySQLi or MySQL Improved. I'm pretty sure that you can run PDO with MySQLi.
 
Upvote 0
Back