user: admin / Posts: 36 / post on: 2021-03-17 20:56:40
php prevent sql injection
The first thing to do would probably be to replace every mysql_* function call with its equivalent mysqli_*,
mysql_connect will be replaced by mysqli_connect
mysql_error will be replaced by mysqli_error and/or mysqli_connect_error, depending on the context
mysql_query will be replaced by mysqli_query
and so on