-3
I have an error in the variables when trying to call through the database and the following message appears :
Parse error: syntax error, Unexpected 'VALUES' (T_STRING) in C: xampp htdocs Site formcadastro conexao2.php on line 24
This line is wrong :
$sql = mysql_query ("INSERT INTO cadastro ('idCad', 'Nome', 'Email', 'Senha', 'Confirmar', 'Telefone', 'Celular', 'Nascimento', 'Sexo', 'Bairro', 'Cidade', 'Estado')"
VALUES ('$idCad', '$nome', '$email', '$senha', '$confirmar', '$telefone', '$celular', '$nascimento', '$sexo', '$bairro', '$cidade', '$estado');
How can I fix ?
I advise you to learn how to interpret error messages. Otherwise it will take a long time to do anything useful, because in addition to making very basic mistakes, you have no idea what is happening. If you have to ask someone a question every time you come across a piece of shit, it’s gonna take hours to do something someone does in minutes. And still having a serious security problem.
– Maniero