The data is not registered in the database, but it appears that the registration was successful [closed]

1

<?php$host="localhost";
$user = "root";
$pass = "";
$db = "tomorrow";
$conexao=@mysqli_connect($host, $user, $pass) or die(mysqli_error());
mysqli_select_db($conexao,$db) or die(mysqli_error());
?>

<?php
$username=$_POST['username'];
$email=$_POST['email'];
$password=$_POST['password'];
$sql=mysqli_query($conexao,"INSERT INTO usuarios(username, email, password)VALUES('$username', '$email', '$password')");
echo "<center><h1>Cadastro realizado com sucesso</h1></center>";
mysqli_close($conexao);
?>
    
asked by anonymous 02.02.2018 / 01:59

0 answers