-
php , , - SQL-.
This most often happens with poorly sanitized inputs. Using mysql_real_escape_string () provides general protection. With the advent of OOP in PHP 5, it is very useful to consider using the PDO extension for PHP to create parameterized sql statements at the point at which the mysql server executes them.
PHP PDO Explanation and Examples
source
share