Question: The figure below shows the vulnerable PHP code for SQL injection attack, identify and explain shortly the vulnerable code and how to prevent the attack

The figure below shows the vulnerable PHP code for SQL injection attack, identify and explain shortly the vulnerable code and how to prevent the attack to happen.

The figure below shows the vulnerable PHP code for SQL injection attack,

111 $name = $_REQUEST['name']; $query = "SELECT * FROM suppliers WHERE name $result = mysql_query($query); $name

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!