MySQL did not return any records

1

Even creating the database in PHP My admin being careful in the tables, it presents this error="MySQL did not return any records";

This is my .PHP, my bank is = register, having the table = users, with the following attributes = name, surname, email, email1, password, password1, profile

<html>
<head>
<title>Cadastrando...</title>
</head>
<body>
<?php
$host = "localhost";
$user = "root";
$pass = "";
$banco = "cadastro";
$conexao = @mysql_connect($host, $user, $pass) or die(mysql_error());
mysql_select_db($banco) or die(mysql_error());

?>
<?php
$nome=$_POST['nome'];
$sobrenome=$_POST['sobrenome];
$email=$_POST['email'];
$email1=$POST['email1'];    
$senha=$POST['senha'];
$senha1=$POST['senha1'];
$perfil=$POST['perfil'];
$sql = mysql_query("INSERT INTO usuarios(nome, sobrenome, email, email1, senha, senha1, perfil) VALUES('$nome', '$sobrenome', '$email', '$email1', '$senha', '$senha1', '$perfil')"); 
?>
</body>
</html> 
    
asked by anonymous 02.04.2017 / 03:37

0 answers