Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

$user_id = $_GET['id']; // Vulnerable SQL query $query = "SELECT * FROM user_profiles ..

Decoded Output download

<?  $user_id = $_GET['id']; 
 
// Vulnerable SQL query 
$query = "SELECT * FROM user_profiles WHERE id = $user_id"; 
$result = mysqli_query($connection, $query); ?>

Did this file decode correctly?

Original Code

$user_id = $_GET['id'];

// Vulnerable SQL query
$query = "SELECT * FROM user_profiles WHERE id = $user_id";
$result = mysqli_query($connection, $query);

Function Calls

mysqli_query 1

Variables

$query SELECT * FROM user_profiles WHERE id = None
$user_id None

Stats

MD5 4bb83f1ab136a284192e347215b5caac
Eval Count 0
Decode Time 34 ms