Tag: SQL Injection

4 SQL injection methods every PHP programmer should be aware of.

The Problem with all the codes is that the value is not sanitized before it will be sent as a query. All we need to make sure is that we are passing a secure data into the database. We can send secure data and prevent the data hacking by following the four prime SQL injection methods Function mysql_real_escape_string() : In PHP, we have a function to deal with strings in MYSQL. (Modified Content) Function: mysql_real_escape_string() Above function seize the …