I can not find the error, to see if someone tells me that I am doing wrong. I added the registry but it gives me an error before.
Warning: mysqli_stmt_bind_param (): Number of variables does not match number of parameters in prepared statement in /results_insertar_registers.php on line 32.
$seccion = $_GET['SECCIÓN'];
$nombreart = $_GET['NOMBREARTĪCULO'];
$fechas = $_GET['FECHA'];
$pais = $_GET['PAÍSDEORIGEN'];
$precio = $_GET['PRECIO'];
require("conexion.php");
$sql="INSERT INTO ARTÍCULOS (SECCIÓN,NOMBREARTÍCULO,FECHA,PAÍSDEORIGEN,PRECIO) VALUES ('$seccion', '$nombreart', '$fechas','$pais', '$precio')";
$resultado = mysqli_prepare($conexion, $sql);
$ok = mysqli_stmt_bind_param($resultado, "sssss", $seccion, $nombreart, $fechas, $pais, $precio );
$ok = mysqli_stmt_execute($resultado);
if($ok == false) {
echo "Error al ejecutar la consulta";
} else {
echo "Registro agregado <br><br>";
}
mysqli_stmt_close ($resultado);