";
foreach ($_POST as $id => $valore) {
if ($id == "utente") continue;
print "---- $id => $valore
";
$query = " SELECT
proxy_acl_ip.id
FROM
condes_regole
JOIN
condes_macchine
ON
condes_regole.id_condes_macchine = condes_macchine.id
JOIN
proxy_acl_ip
ON
proxy_acl_ip.idacllist = condes_regole.id_proxy_acl_list
AND
proxy_acl_ip.idpool = condes_macchine.id_proxy_pool
WHERE
condes_regole.id = $id
";
$res = mysql_query( $query, $DB_ID );
$dato = mysql_fetch_array ( $res );
print_r ($dato);
print "
";
}
$query = " INSERT INTO
condes_regole
SET
id_utenti = $id_utenti,
id_condes_macchine = $id_macchine,
id_proxy_acl_list = $id_acl,
permanente = $perm,
data = NOW(),
attivo = 1
";
// $res = mysql_query( $query, $DB_ID );
}
$tabella = new html (0,"90%",array(15,2,20,2,15,2,5,0));
?>