Question: Question 26 2 pts Below is the PHP function to sanitize incoming values from web pages. Write a simple example (one parameter will suffice) in

Question 26 2 pts

Below is the PHP function to sanitize incoming values from web pages. Write a simple example (one parameter will suffice) in the if(isset(x)) code to use this function.

function mysql_fix_string($conn, $string){

if(get_magic_quotes_gpc())

$string = stripslashes($string);

}

return $conn->real_escape_string($string);

}

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!