What a problem in code [Closed]

Report
-
<?php
$con=mysqli_connect('127.0.0.1','root','');
if(!$con)
{
echo"not connected to server";
}
if(!mysqli_select_db($con,'tablestructure'))
{
echo"not connected to database";
}
if (isset($_POST['submit']))
{
echo"name exist";
$fname = $_POST["fname"];
$pass = $_POST["pass"];
$repass = $_POST["repass"];

$sql="INSERT INTO datainfo(Name,password,Retypepassword) VALUES('$fname','$pass','$repass')";
if(!mysqli_query($con,$sql))
{
echo"not inserted";
}
}
?>

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!