I am getting undefined errors in PHP. I am trying to insert data into MYSQL database using PHP but I am getting errors. I am attaching an image with an error. I want to insert data into the database using PHP.
Please Solve this problem I don't know whats mistake
PHP code -
<?php
include "init.php";
$fullname = $_POST['fullname'];
$username = $_POST['username'];
$password = $_POST['password'];
$enc_password = md5($password);
$result = "INSERT into tb_user(fullname, username,password) VALUES( '$fullname', '$username', '$enc_password' )";
if( mysqli_query($conn, $result))
{
echo "Success";
}
else
{
echo "Failed";
}
?>