Ver Mensaje Individual
  #4 (permalink)  
Antiguo 25/07/2013, 09:09
panyy80
 
Fecha de Ingreso: febrero-2007
Mensajes: 62
Antigüedad: 17 años, 2 meses
Puntos: 1
Respuesta: Problemas al actualizar base de datos

Nada... no me sale, este es mi form

<form method="post" name="form1" action="<?php echo $editFormAction; ?>">
<table width="100%" border="1">
<tr class="tablaprincipal" >
<td>Nombre Producto</td>
<td>Orden</td>

</tr>
<?php do { ?>
<tr class="brillo" >
<td><?php echo $row_Recordset1['strNombre']; ?></td>
<td><input type="text" name="intOrden" id="<?php echo $row_Recordset1['idProducto']; ?>" value="<?php echo htmlentities($row_Recordset1['intOrden'], ENT_COMPAT, 'iso-8859-1'); ?>"></input>
</tr>

<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
<tr valign="baseline">
<td nowrap align="right">&nbsp;</td>
<td><input type="submit" value="Actualizar registro"></td>
</tr>

</table>
<input type="hidden" name="MM_update" value="form1">
</form>

y esta la sentencia update

$updateSQL = sprintf("UPDATE tblproducto SET intOrden=%s WHERE idProducto=%s",
GetSQLValueString($_POST['intOrden'], "int"),
GetSQLValueString($_POST['idProducto'], "text"));

como puedo actualizar??