Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php $connection = mysqli_connect("localhost","root",""); $db = mysqli_select_db($conne..
Decoded Output download
<?php
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection, 'phpcrud');
if(isset($_POST['deletedata']))
{
$id = $_POST['delete_id'];
$query = "DELETE FROM student WHERE id='$id'";
$query_run = mysqli_query($connection, $query);
if($query_run)
{
echo '<script> alert("Data Deleted"); </script>';
header("Location:index.php");
}
else
{
echo '<script> alert("Data Not Deleted"); </script>';
}
}
?>
Did this file decode correctly?
Original Code
<?php
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection, 'phpcrud');
if(isset($_POST['deletedata']))
{
$id = $_POST['delete_id'];
$query = "DELETE FROM student WHERE id='$id'";
$query_run = mysqli_query($connection, $query);
if($query_run)
{
echo '<script> alert("Data Deleted"); </script>';
header("Location:index.php");
}
else
{
echo '<script> alert("Data Not Deleted"); </script>';
}
}
?>
Function Calls
mysqli_connect | 1 |
Stats
MD5 | 576fdbfe57e7ca6318ffa636f5d0f170 |
Eval Count | 0 |
Decode Time | 47 ms |