Respuesta: Ayuda Array creado con datos post Gracias por tu respuesta
En el resultado del echo ya hay problemas, en los campos donde debería salir la hora solo sale el primer dígito, el resultado es este:
insert into partes_oprealizadas (IDParte, IDOpPrinergy, Seccion, Proceso, operacion, HrTermino, Bueno, Malo, Comentario, CTFPaginas) values('4', '24273', '30', '30', '3', '1', '8', '', '', '3') ,('4', '24274', '30', '30', '0', '0', '', '', '', '-') ,('4', '24276', '30', '30', '0', ':', '', '', '', '1') ;
El código del formulario:
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
<p> </p>
<table border="1" align="center">
<tr>
<td> </td>
<td>Inicio</td>
<td>Fin</td>
<td>OT</td>
<td>Nombre</td>
<td>Pliego</td>
<td>Lado</td>
<td>Operacion</td>
<td>Bueno</td>
<td>Malo</td>
<td>Comentario</td>
</tr>
<?php do { ?>
<tr>
<td><input name="IDOpPrinergy[]" type="checkbox" id="IDOpPrinergy[]" value="<?php echo $row_SalidaImproof['ID']; ?>" />
<input name="IDParte[]" type="hidden" id="IDParte[]" value="<?php echo $_GET['IDParte']; ?>" />
<input name="Seccion[]" type="hidden" id="Seccion[]" value="<?php echo $row_ParteRegistrado['seccionID']; ?>" />
<input name="Proceso[]" type="hidden" id="Proceso[]" value="30" />
<label for="IDOpPrinergy[]"></label></td>
<td><?php echo $row_SalidaImproof['Hora']; ?></td>
<td><input type="text" name="HrTermino" value="<?php echo $row_SalidaImproof['Hora']; ?>" size="12" /></td>
<td><?php echo $row_SalidaImproof['OT']; ?></td>
<td><?php echo $row_SalidaImproof['OTNombre']; ?></td>
<td><input name="CTF" type="text" id="CTF" value="<?php $nombrepliego = preg_replace('([A-Za-z\_])s', "", $row_SalidaImproof['Pliego']); echo substr($nombrepliego , 5);?>" size="12" readonly="readonly" /></td>
<td><?php echo $row_SalidaImproof['Lado']; ?></td>
<td><select name="operacion">
<?php
do {
?>
<option value="<?php echo $row_OperacionesImproof['ID']?>"<?php if (!(strcmp($row_OperacionesImproof['ID'], 300))) {echo "selected=\"selected\"";} ?>><?php echo $row_OperacionesImproof['Operacion']?></option>
<?php
} while ($row_OperacionesImproof = mysql_fetch_assoc($OperacionesImproof));
$rows = mysql_num_rows($OperacionesImproof);
if($rows > 0) {
mysql_data_seek($OperacionesImproof, 0);
$row_OperacionesImproof = mysql_fetch_assoc($OperacionesImproof);
}
?>
</select></td>
<td><input type="text" name="Bueno" value="<?php echo $row_SalidaImproof['Cantidad']; ?>" size="12" /></td>
<td><input type="text" name="Malo" value="" size="12" /></td>
<td><input type="text" name="Comentario" value="<?php echo $row_SalidaImproof['Comentario']; ?>" size="12" /></td>
</tr>
<?php } while ($row_SalidaImproof = mysql_fetch_assoc($SalidaImproof)); ?>
</table>
<table width="50%" align="center">
<tr valign="baseline">
<td align="center" valign="middle" nowrap="nowrap"><input type="submit" value="Agregar a Parte" /></td>
</tr>
</table>
<p> </p>
<p>
<input type="hidden" name="MM_insert" value="form1" />
</p>
</form> |