RecuperaDati($query) ; print_r($d) ; // exit ; ?> <? echo TITLE ?>

query($qcl) ; while ($db->next_record()) { $nomecliente = $db->f("Nome") ; } $query = " select $tprodotti.nome as NomeProdotto, $tprodotti.annata as Annata, $tfornitori.nome as NomeFornitore from $tprodotti, $tfornitori where IdProdotti = $idprodotto and Fornitore = IdFornitori " ; $db->query($query) ; while ($db->next_record()) { $nome = $nomeprodotto = $db->f("NomeProdotto") ; $annata = $db->f("Annata") ; $nomefornitore = $db->f("NomeFornitore") ; } printf (" Cliente $nomecliente; Azienda $nomefornitore \n") ; // exit ; ?> query($query) ; while ($db->next_record()) { $id = $db->f("IdOrdine") ; $nomecliente = $db->f("NomeCliente") ; $dataordine = $db->f("DataOrdine") ; $tot = $db->f("NumCartoni") * $db->f("ConfezioniDa") ; $nomeprodotto = $db->f("NomeProdotto") ; $totale += $tot ; $valori["$id"]["$nomecliente"]["$dataordine"]["numcartoni"] += $db->f("NumCartoni") ; $valori["$id"]["$nomecliente"]["$dataordine"]["confezionida"] = $db->f("ConfezioniDa") ; $valori["$id"]["$nomecliente"]["$dataordine"]["tot"] += $tot ; } if (count($valori) > 0) { @reset($valori) ; foreach ($valori as $id => $array_val) { printf (" \n",(($i % 2) == 0?$bgcol[0]:$bgcol[1])) ; list($nomecliente, $array_val1) = each ($array_val) ; list($dataordine, $array_val2) = each ($array_val1) ; ?>
ORDINE N. PRODOTTO DATA ORDINE CARTONI CONF. TOT. BOTTIGLIE  

Det

TOTALE    
0) { ?>