Il codice php ora è così:
Codice PHP:
<html>
<link rel="stylesheet" type="text/CSS" href="jsmenu.CSS">
<link rel="stylesheet" type="text/CSS" href="css.CSS">
<script type="text/Javascript" src="expand.js"></script>
<body>
<div id="nav">
<ul>
<?php
$c=oci_connect("xxx", "xxx", "xxx");
$queryprima=oci_parse($c,"select m.cod_macro livello1, m.des_macro des_livello1 from con_macro m order by m.ordine");
oci_execute($queryprima);
while (($riga=oci_fetch_array($queryprima, OCI_NUM + OCI_RETURN_NULLS))){
echo("[*]<h3>".$riga[1]."</a></h3>");
$macro=$riga[0];
$queryseconda=oci_parse($c,"select m.cod_macro livello1, fu.des_funzione des_livello2 from con_macro m, con_menu me, con_funzioni fu where m.cod_macro = me.cod_macro and me.cod_funzione = fu.cod_funzione and m.cod_macro='$macro' order by m.ordine,me.ordine");
oci_execute($queryseconda);
while (($row=oci_fetch_array($queryseconda, OCI_NUM + OCI_RETURN_NULLS))){
echo ('[*][url="#"]'.$row[1].'[/url]');
}
echo('');
}
?>[/list]
</div>
</body>
</html>