Sorry for the inconvenience I'm starting to program in PHP, I have to enter data to a MySQL database, but I miss an error that the data could not be entered. I send the part of the code where I throw the error.
$consulta = "INSERT INTO registros(rut, nombre, apellido, email, contraseña) VALUES
('15342320K', 'Fabian', 'Ruiz', '[email protected]', 'FR2016')";
$ejecutar = mysql_query($consulta,$conexion) or die('Error al insertar datos');
echo "Se insertaron los datos correctamente";
Until there everything works correctly. Thank you very much for your attention.