![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
01/03/2011, 12:01
|
![Avatar de protego](http://static.forosdelweb.com/customavatars/avatar319190_1.gif) | | | Fecha de Ingreso: agosto-2009
Mensajes: 38
Antigüedad: 15 años, 5 meses Puntos: 0 | |
Respuesta: Ayuda Para poder realizar update a varios campos de una DB grasias por la ayuda pero sige dande me el mismo error y lo puse de la manero que tu pusiste ,
esta es la pag que muestra los datos que quiero modificar, va y aqui esta el error.
<?php
$conexion=mysql_connect("localhost","root","") or
die("Problemas en la conexion");
mysql_select_db("olimpo",$conexion) or
die("Problemas en la selección de la base de datos");
$registros=mysql_query("select * from identidades
where id='$_REQUEST[id]'",$conexion) or
die("Problemas en el select:".mysql_error());
if ($reg=mysql_fetch_array($registros))
{
?>
<form action="Data/complementos/proses/update-i.php" method="post">
<input type="hidden" name="id" value="<?php echo $reg['id'] ?>" />
<input type="text" name="nombre" size="30" value="<?php echo $reg['nombre'] ?>">
Nombre.
<br>
<br>
<input type="text" name="paterno" size="30" value="<?php echo $reg['paterno'] ?>" >
1er apellido.
<br>
<br>
<input type="text" name="materno" size="30" value="<?php echo $reg['materno'] ?>">
2do apellido.
<br>
<br>
<input type="text" name="ciudad" size="30" value="<?php echo $reg['ciudad'] ?>" >
Ciudad.
<br>
<br>
<input type="text" name="calle" size="30" value="<?php echo $reg['calle'] ?>" >
>
Calle.
<br>
<br>
<input type="text" name="numero" size="30" value="<?php echo $reg['cnumero'] ?>" >
# de casa.
<br>
<br>
<input type="submit" name="re" value="Actualizar" >
</form> |