permission("task",$_POST["codice"])) { $bind = array(":codice"=>$_POST["codice"],":codice_utente"=>$_SESSION["utente"]->codice); $sql = "DELETE FROM b_tasks WHERE codice = :codice AND codice_utente = :codice_utente "; $ris = $pdo->go($sql,$bind); if ($ris->rowCount() === 1) { $bind = array(":codice"=>$_POST["codice"],":codice_utente"=>$_SESSION["utente"]->codice,":codice_ente"=>$_SESSION["ente"]->codice); $sql = "DELETE FROM r_alert_task WHERE codice_task = :codice AND codice_ente = :codice_ente AND codice_utente = :codice_utente "; $pdo->go($sql,$bind); $error =false; ?> window.location.reload();