riga(); $query = " SELECT wf_materiale.id, wf_materiale.attivo, wf_materiale.nome, wf_materiale.taglie, wf_materiale.nota, wf_materiale.vendita, wf_materiale.categoria, wf_materiale.produttore FROM wf_materiale ORDER BY wf_materiale.attivo desc, wf_materiale.categoria, wf_materiale.produttore, wf_materiale.nome "; $res = mysql_query( $query, $DB_ID ); $tabella->intestazione (array("", "", "", "Articolo", "", "Produttore", "", "Taglie", "","Nota", "", "Vendita", "")); $tabella->riga(); $artold = ""; while ($dato = mysql_fetch_array ( $res )) { if ($artold != $dato['categoria']) { if ($artold != "") $tabella->riga(); ?> Articolo attivo Articolo non attivo Modifica articolo close(); ?>