
15/06/2009, 23:04
|
 | | | Fecha de Ingreso: agosto-2008 Ubicación: R.D
Mensajes: 1.153
Antigüedad: 16 años, 7 meses Puntos: 139 | |
Respuesta: problema que no puedo solucionar
Código:
<?php
$sql_capacidad = "SELECT * FROM miusb_capacidad_precio group by capacidad";
$rpta_capacidad = mysql_query($sql_capacidad) or die(mysql_error());
$i = 0;
?>
<table width="216" border="1" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<th>Capacidad</th>
<th>Precio</th>
</tr>
<?php while($capacidad = mysql_fetch_array($rpta_capacidad)):?>
<tr>
<td width="106">
<input name="capacidad[<?=$i?>]" type="checkbox" class="objetoformulario" checked="checked" id="capacidad" value="<?=$capacidad['Capacidad'];?>">
</td>
<td width="102">
<input name="precio_usb_<?=$i;?>" type="text" class="objetoformulario" size="12" value="<?="$".$capacidad["precio_usb"]?>"/></td>
</tr>
<?php
$i++;
endwhile;
?>
</tbody>
</table>
Última edición por gjx2; 15/06/2009 a las 23:12 |