I've been searching questions about but unfortunatelly withotr success. The issue is that the folowing query in php to update a row does not work and gives no error, but when try the query in SQL (mysql) directly works fine... Could someone see where the error is?
query:
include('conexion.php');
$id_recibo=$_POST["id_recibo"];
$id_usuario=$_POST["id_usuario"];
$id_estado='2';
mysqli_query("UPDATE recibo SET id_estado = '$id_estado' WHERE id_recibo = '$id_recibo'");