no se mucho de sintaxis pero mejor acomodalo asi
Código PHP:
<?php
$sql_capacidad = "SELECT * FROM miusb_capacidad_precio";
$rpta_capacidad = mysql_query($sql_capacidad) or die(mysql_error());
$i = 0;
?>
<table width="216" border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<th>Capacidad</th>
<th>Precio</th>
</tr>
<?php
while($row = mysql_fetch_array($_pagi_result)){
$dato1 = $row['dato1'];
$dato2 = $row['dato2'];
//...
?>
<tr>
<td width="106">
<input name="<?php echo "capacidad[".$i."]"; ?>" type="checkbox" class="objetoformulario" id="capacidad" value="<?php echo $dato1; ?>" />
</td>
<td width="102">
<input name="<?php echo "precio_usb_".$i; ?>" type="text" class="objetoformulario" size="12" value="<?php echo $dato2; ?>"/></td>
</tr>
<?php
$i++;
}
?>
si en el while tienes el dato de que capacidad , deberias diseñar 3 check que sean de 2, 4 y 8 .... y con un simple if($capacidad=='8') le asignas el checked al que tenga ese dato