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 $servername = "localhost"; $username = "root"; $password =""; $dbname = ..
Decoded Output download
<?php
$servername = "localhost";
$username = "root";
$password ="";
$dbname = "anurag";
$conn = mysqli_connect($servername, $username, $password, $dbname);
if(isset($_POST['signup'])){
$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$address = $_POST['address'];
}
$insert = "INSERT INTO 'student'('name','phone','email','address') VALUES ('$name','$phone','$email','$address')";
mysqli_query($conn, $insert);
header("Location: student.php");
// Close the connection
mysqli_close($conn);
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
?>
Did this file decode correctly?
Original Code
<?php
$servername = "localhost";
$username = "root";
$password ="";
$dbname = "anurag";
$conn = mysqli_connect($servername, $username, $password, $dbname);
if(isset($_POST['signup'])){
$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$address = $_POST['address'];
}
$insert = "INSERT INTO 'student'('name','phone','email','address') VALUES ('$name','$phone','$email','$address')";
mysqli_query($conn, $insert);
header("Location: student.php");
// Close the connection
mysqli_close($conn);
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
?>
Function Calls
mysqli_connect | 1 |
Stats
MD5 | cf86cd190a049736b18170e32d53188b |
Eval Count | 0 |
Decode Time | 66 ms |