Ver Mensaje Individual
  #6 (permalink)  
Antiguo 13/06/2008, 13:17
cofran
 
Fecha de Ingreso: junio-2008
Mensajes: 11
Antigüedad: 15 años, 10 meses
Puntos: 0
Pregunta Respuesta: orden de pedido

Gracias che, pero mira en otro foro me pasaron probar con algunas modificaciones en el formulario miren:

Código PHP:
<tr>
    <td width="32%"><strong>Codigo</strong></td>
    <td width="30%"><strong>Producto</strong></td>
    <td width="38%"><strong>Cantidad</strong></td>
    <td width="38%"><strong>Select</strong></td>
  </tr>
  
<?php
    $sql3
="select * FROM items where id_cat='$id_cat' AND id_subcat='$id_subcat'";
    
$res3=mysql_query($sql3);
    while (
$row3 mysql_fetch_array($res3))
{
?>

  <tr>
    <td><?php echo $row3['codigo']; ?></td>
    <td><?php echo $row3['nombre']; ?></td>
    <td><input type="text" name="<? echo cantidad[] ?>" id="cant[]" size="2"  /></td>
    <td><input type="checkbox" name="<?php echo $row3['nombre'] . '[]'?>" value="<?php echo row3['id'] . '[]'?>" /></td>
  </tr>



<?php
}
Pero me hace un array escalable como puedo transformar esto a asociativo y recorrer los resultados después????????'