I attach the code that reads from a table and writes in other certain fields, the theme is that I followed the examples I saw in Stacoverflow ... and it does not work for me, although the recorded record legend appears, it does not record anything . Any suggestions?
foreach($emails as $email) {
echo $email['mail'];
$statement = $conexion->prepare("INSERT INTO mailing (id, mail, nombre, telefono, estado) VALUES (null, :mail, :nombre, :telefono, :estado)");
$statement->execute(array(
':mail' => $email['mail'],
':nombre' => $email['nombre'],
':telefono' => '',
':estado' => '1'
));
echo " - Grabado"."<br>";
}