Well I'm trying to do a "PHP and MySQL Registration System" I did this following all the instructions passed to me but at the time of the result it returns the following message.
Parse error: syntax error, unexpected 'mysql_query' (T_STRING) in C: \ wamp \ www \ Form \ domain.php on line 25
Below is my code
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Formulário de inscrição</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'];
$dataNasc = $_POST['dataNasc'];
$telefone = $_POST['telefone'];
$email = $_POST['email'];
$bairro = $_POST['bairro'];
$comentarios = $_POST['comentarios'];
$sql mysql_query("INSERT INTO funcionarios(nome, sobrenome, nascimento, telefone, email, bairro, comentarios)VALUES('$nome', '$sobrenome', '$dataNasc', '$telefone', '$email', '$bairro', '$comentarios')");
?>
</body>
</html>
And now a print that I think can help ...
So could you help me find the error?