go($sql,array(":codice"=>$id)); if ($ris->rowCount() > 0) { if (!empty($_SESSION["ente"])) { $sql = "SELECT codice FROM b_form WHERE codice = :codice AND codice_ente = :codice_ente "; $ris = $pdo->go($sql,array(":codice"=>$id,":codice_ente"=>$_SESSION["ente"]->codice)); if ($ris->rowCount() > 0) { $return = true; } } else if ($_SESSION["utente"]->gerarchia < 3) { $return = true; } } } ?>