Question: Fred is designing a delete user function for a web interface that deletes the row of the user passed in the id parameter to his

 Fred is designing a delete user function for a web interface

Fred is designing a delete user function for a web interface that deletes the row of the user passed in the id parameter to his page delete_userphp. The code is shown below: Fred is VERY confused because his code ends up deleting all rows from the user table except the row with id-0. What is happening? Fred does NOT load his query paraneter into the PHP variable Sid. Fred does not connect to the database before he executes his command. Fred never specined what id is equal to in his SQL Fred is NOT connecting to the locathost where his DB server is running

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!