Security: How to protect your MySQL query from SQL injectionTag: security, mysql, sql injection Category: Mysql, PHP Basicpost: 13 Nov 2007 read: 1,163 SQL injection is one thing that get concern by PHP programmer. Target SQL injection is sensitive part in web application, database. An experienced attacker can use this hacking technique to access sensitive data. It use strings contain query that will be executed by database. It may be can display, modify, or delete your data. The easiest way to escape from this attack is using mysql_real_escape_string(). By escaping special characters on fields where the user can manipulate the database, you will avoid being vulnerable. The following code is unsecure example:
I think following code more secure:
|
| | Give Your Opinion | Recommend |
|

