Grazie mille per la risposta, mi sembrava di aver provato anche cosi, ma mi sembrava di aver avuto problemi riguardo alla checkbox,
La parte che mostra i dati è questa:

codice:
	<form name="magazzino" method="get" action="agg/agg_magazzino.php">
	<input type="hidden" name="do" value="nuovo" />
	<table class="table_dati">
		<tr><td colspan="2" align="left"><h2>&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;ARTICOLO PRINCIPALE</h2>
		</tr>
	<tr>
	<td width="20%">Articolo:
	<b><? echo $row_articolo['art_codice']; ?></b>&thinsp;-&thinsp;<?echo $row_articolo['art_descrizione']; ?><input type="hidden" name="articolo" value="<? echo $row_articolo['art_id']; ?>" /><font color="#FF0000" size="+1">&nbsp;</font>
<br>Quantita':
	<b><? echo $_GET['quantita']; ?></b>


	<td width="30%" style="text-align: center;"><?echo mostra_filesPR('art', $_GET['articolo']); ?><br></td>
</tr>


	</table>




	<input type="hidden" name="carico" value="<? echo $_GET['carid']; ?>" />
	<hr>
	<br /><div style="width:90%" align="center">


		<h2>&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;COMPONENTI</h2>




		<?
				$query_componenti = "SELECT * FROM articoli WHERE art_principale='$_GET[articolo]' ";
				$result_componenti = mysql_query($query_componenti) or die("Non ho potuto effettuare la query_componenti. <b>Cod.-".mysql_errno().":". mysql_error()."</b>" );
				$row_componenti = mysql_fetch_assoc($result_componenti);
			?>
							<table style="width: 90%; font-family: Arial, Helvetica, sans-serif; font-size: 12px;">
								<tr>
									<td align="center"><b> ATTIVO &thinsp;</b></td>
									<td ALIGN="CENTER"><b>UNITÀ</b></td>
									<td ALIGN="CENTER"><b>IN ORDINE</b></td>
									<td><b>CODICE</b></td>
									<td><b>DESCRIZIONE</b></td>
								</tr>
								<tr><td colspan="6"><hr></td> </tr>
								<?
								do {
									//SELEZIONO L'IMMAGINE DEL COMPONENTE
									$query_img = "SELECT * FROM files WHERE fil_tipo='art' AND fil_idtipo='$row_componenti[art_id]' ";
									$result_img = mysql_query($query_img) or die("Non ho potuto effettuare la query_img. <b>Cod.-".mysql_errno().":". mysql_error()."</b>" );
									$row_img = mysql_fetch_assoc($result_img);
								?>
								<tr onMouseover="this.bgColor='#96b6ea'" onMouseout="this.bgColor='#ffffff'">
									<?$operatore=$_GET['quantita']*$row_componenti['art_distintaquantita'];?>


									<td align="center"><input type="checkbox" name="#" value="#" <? if ($row_componenti['art_distintabase']) {?>
										checked <?
									}  ?>></td>
									<td ALIGN="CENTER"><a target="_blank" href="articoli.php?show=m&id=<? echo $row_componenti['art_id'];?>"><i><b><? echo $row_componenti['art_distintaquantita']; ?>	&thinsp;X</a></b></i>&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;</TD><TD ALIGN="CENTER">
									<input type="text" name="qtacomponenti"  size="4" name="#" value="<? echo $operatore; ?>"> </td>
									<input type="hidden" name="refcomponente" value="<? echo $row_componenti['art_id'];?>">
									<td ><a target="_blank" href="articoli.php?show=m&id=<? echo $row_componenti['art_id'];?>"><? echo $row_componenti['art_codice']; ?>	</a> </td>
									<td><a target="_blank" href="articoli.php?show=m&id=<? echo $row_componenti['art_id'];?>"><? echo $row_componenti['art_descrizione']; ?>	</a> </td>
									<td style="width: 20%; text-align: right"><a target="_blank" href="articoli.php?show=m&id=<? echo $row_componenti['art_id'];?>"><img src="<? echo "upload/articoli/".$row_img['fil_id']."-".$row_img['fil_percorso']; ?>" style=" max-width: 100px; max-height: 100px;"/>	</a> </td>


								</tr>
								<tr><td colspan="6"><hr></td> </tr>
				<?
										if ($row_componenti['art_principale']!=0 OR $row_componenti['art_principale']!=1) {




											$query_sottocomponenti = "SELECT * FROM articoli WHERE art_principale = $row_componenti[art_id] ";
											$result_sottocomponenti = mysql_query($query_sottocomponenti) or die("Non ho potuto effettuare la query_sottocomponenti. <b>Cod.-".mysql_errno().":". mysql_error()."</b>" );
											$row_sottocomponenti = mysql_fetch_assoc($result_sottocomponenti);






							?><?




							?>
								<?php if ($row_sottocomponenti): ?>
									<?do {
										$query_imgs = "SELECT * FROM files WHERE fil_tipo='art' AND fil_idtipo='$row_sottocomponenti[art_id]' ";
										$result_imgs = mysql_query($query_imgs) or die("Non ho potuto effettuare la query_imgs. <b>Cod.-".mysql_errno().":". mysql_error()."</b>" );
										$row_imgs = mysql_fetch_assoc($result_imgs);




 $operatore=$_GET['quantita']*$row_sottocomponenti['art_distintaquantita'];
			?>
										<tr onMouseover="this.bgColor='#96b6ea'" onMouseout="this.bgColor='#d9d9d9'" bgColor="#d9d9d9">
											<td align="center"><input type="checkbox" name="passaggio<?echo $i;?>[]" value=" <? echo $row_sottocomponenti['art_id'];?>" <? if ($row_componenti['art_distintabase']) {?>
												checked <?
											}  ?>></td>
											<td ALIGN="CENTER"><a target="_blank" href="articoli.php?show=m&id=<? echo $row_sottocomponenti['art_id'];?>"><i><b><? echo $row_sottocomponenti['art_distintaquantita']; ?>	&thinsp;X</a></b></i>&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;</TD><TD ALIGN="CENTER" >
											<input type="text" name="qtacomponenti"  size="4" value="<? echo $operatore; ?>"> </td>
											<input type="hidden" name="refcomponente" value="<? echo $row_sottocomponenti['art_id'];?>">
											<td ><a target="_blank" href="articoli.php?show=m&id=<? echo $row_sottocomponenti['art_id'];?>"><? echo $row_sottocomponenti['art_codice']; ?>	</a> </td>
											<td><a target="_blank" href="articoli.php?show=m&id=<? echo $row_sottocomponenti['art_id'];?>"><? echo $row_sottocomponenti['art_descrizione']; ?>	</a> </td>
											<td  target="_blank" style="width: 20%; text-align: right"><a href="articoli.php?show=m&id=<? echo $row_sottocomponenti['art_id'];?>"><img src="<? echo "upload/articoli/".$row_imgs['fil_id']."-".$row_imgs['fil_percorso']; ?>" style=" max-width: 60px; max-height: 60px;"/>	</a> </td>


										</tr>






									<?} while ($row_sottocomponenti = mysql_fetch_assoc($result_sottocomponenti));?>




					</tr>
									<tr><td colspan="6"><hr></td> </tr>






								<?php endif; ?>
										<?}?>








								<? } while($row_componenti = mysql_fetch_assoc($result_componenti)); ?>
							</table>










		<input name="inmagazzino" value=" INSERISCI " type="submit" class="button"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</div>
	</form>
	</td>


	</tr>


    </table>