ciaooo io ho provato a fare come hai detto tu, ma non funziona, ti posto il codice:
Mi stampa soltanto prima etichettaCodice PHP:case "2";
?>
<html>
<body>
<table>
<tr>
<td>Prima etichetta</td>
</tr>
<tr>
<td>Seconda etichetta</td>
</tr>
<tr>
<td>Terza etichetta</td>
</tr>
<?php
$result=$_SESSION['db']->execute("SELECT bi_idrichie,re_richieste_bw,re_articoli_ricev,re_richieste_ln,re_articoli_forni,(re_articoli_ricev) - (re_articoli_forni) AS differenza_ricev_forni FROM report_biblio WHERE bi_idforni=".$_SESSION['biblio']->bi_id." AND re_anno=$year ");
while ($row=$_SESSION['db']->fetch($result)) {?>
<td><?php if (isset($row["bi_idriche"])) echo $row["bi_idriche"]; ?> </td>
<?php } ?>
</tr>
<tr>
<?php while ($row2=$_SESSION['db']->fetch($result)) {?>
<td><?php echo $row2["re_richieste_bw"]; ?></td>
<?php } ?>
</tr>
<tr>
<?php while ($row3=$_SESSION['db']->fetch($result)) {?>
<td><?php echo $row3["re_articoli_ricev"]; ?></td>
<?php } ?>
</tr>
</table>
</body>
</html>
<? break;
seconda etichetta
terza etichetta

Rispondi quotando