Ver Mensaje Individual
  #8 (permalink)  
Antiguo 25/08/2008, 09:07
jrodriguez30
 
Fecha de Ingreso: abril-2008
Mensajes: 151
Antigüedad: 16 años, 1 mes
Puntos: 0
Respuesta: Recorrer tabla

Si....
echo "<TABLE BORDER = 10 id = tabla>";
echo "<TR><TH bgcolor=#C0D9D9>Fecha</th><TH bgcolor=#C0D9D9>Categoria</th><TH bgcolor=#C0D9D9>Cod</th><TH bgcolor=#C0D9D9>Descripcion</th><TH bgcolor=#C0D9D9>Unidad</th><TH bgcolor=#C0D9D9>Cantidad</th>";
while($sql = mysql_fetch_array($consulta))
{
echo "<tr>";
echo "<form name = formulario action = adicionapedido.php method = get>";
echo "<td>".$fecha_."</td>";
echo "<td>".$sql['subcategoria']."</td>";
echo "<td>".$sql['codigo']."</td>";
echo "<td>".$sql['descrip']."</td>";
?><td id="unidad"><input type="text" name="und"></td>
<td><input type="text" name="cant"></td> <?

echo "</form>";
echo "</tr>";
}
echo "</table>";
Solamente quiero evaluar si el cliente rellena el input und y cant... los demas por default vienen rellenos porq vienen de una consulta...