I'm developing software in PHP / HTML / MYSQL FRONT. I need to give a Update in a table but changing two columns at one time. Here comes my doubt in the variable $ gravaprat1, since it is not executing the second command (SEND = 1). Next:
$selectsql = "select osi, entrada, vendedor, prateleira, now(), abs(DATEDIFF(now(), str_to_date(entrada,'%Y-%m-%d'))) as dias from itens;";
$res = mysqli_query($conn, $selectsql);
$gravaprat1 = "update itens set prateleira = 1 where abs(DATEDIFF(now(), str_to_date(entrada,'%Y-%m-%d'))) < 30 ***(NESSA PARTE ESTOU COM DUVIDA -->)***and update itens set enviar = 1";
$prat1sql = mysqli_query($conn, $gravaprat1);