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 = "tus..
Decoded Output download
<?php
$servername = "localhost";
$username = "root";
$password ="";
$dbname = "tushar";
$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 `stu`(`name`,`phone`,`email`,`address`) VALUES ('$name','$phone','$email','$address')";
mysqli_query($conn, $insert);
header("Location: stu.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 = "tushar";
$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 `stu`(`name`,`phone`,`email`,`address`) VALUES ('$name','$phone','$email','$address')";
mysqli_query($conn, $insert);
header("Location: stu.php");
// Close the connection
mysqli_close($conn);
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
?>
Function Calls
mysqli_connect | 1 |
Stats
MD5 | 7d4e5e6b7ee30e9ffb78914bc41b7e23 |
Eval Count | 0 |
Decode Time | 65 ms |