I have problems when doing an update in php, I can see each element of the arrangement when I receive it in $ _POST but at the moment of executing the update it does not do anything, I do not know ... if it is an error of syntax or what problem is being generated, here I share my code in php.
<?php
include_once 'bin/conn.php'; //DATOS DE CONEXION
$ids = $_POST["id_nota"];
for ($i=0; $i<count($ids); $i++)
{
$upd= "UPDATE notas SET estado = 'CA', actualizacion=NOW() WHERE id_nota='"$ids[$i]."";
$mysqli->query($upd);
//echo $ids[$i]. "<br>";Imprime cada elemento por salto de linea
echo "Datos Enviados";
}
?>