query("select count(*) as tot from clienti where attivo = 1") ; while ($db->next_record()) $totclienti = $db->f("tot") ; $qc = " select * from clienti where attivo = 1 order by Nome " ; list($nc, $dc) = $db->RecuperaDati($qc) ; for ($i=0; $i<$nc; $i++) { $cliid[] = $dc['IdClienti'][$i] ; $clinome[] = $dc['Nome'][$i] ; } $qf = " select * from fornitori where (attivo = 1) or (attivo = 0 and AnnoDisattivazione > $anno) order by Nome " ; list($nf, $df) = $db->RecuperaDati($qf) ; for ($i=0; $i<$nf; $i++) { $forid[] = $df['IdFornitori'][$i] ; $fornome[] = $df['Nome'][$i] ; } ?> <? echo TITLE ?>
(N.B: attualmente ci sono clienti e fornitori presenti in archivio)
Confronta con anno precedente al:
Cliente: Fornitore: