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

Signing you up...

Thank you for signing up!

PHP Decode

$search_term = $_GET['search']; // Vulnerable SQL query $query = "SELECT * FROM produc..

Decoded Output download

<?  $search_term = $_GET['search']; 
 
// Vulnerable SQL query 
$query = "SELECT * FROM products WHERE product_name LIKE '%$search_term%'"; 
$result = mysqli_query($connection, $query); ?>

Did this file decode correctly?

Original Code

$search_term = $_GET['search'];

// Vulnerable SQL query
$query = "SELECT * FROM products WHERE product_name LIKE '%$search_term%'";
$result = mysqli_query($connection, $query);

Function Calls

mysqli_query 1

Variables

$query SELECT * FROM products WHERE product_name LIKE '%None%'
$search_term None

Stats

MD5 a146b513c2de3beb4d08e4f39a4f64d6
Eval Count 0
Decode Time 42 ms