Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/04/2007, 14:13
Avatar de maxi_lance
maxi_lance
 
Fecha de Ingreso: julio-2006
Ubicación: Capital Federal
Mensajes: 220
Antigüedad: 17 años, 10 meses
Puntos: 2
Duda con UPDATE en PHP y MYSQL

Tengo este siguiente archivo en donde me muestra los datos cargados en la base de datos
Código PHP:
<?php
require_once ("conectar.php") ;
$sql " SELECT * FROM agenda order by nombre";
$result mysql_query($sql);
?>
<table border="1" bordercolor="#999999">
<tr>

<td><strong>Nombre</strong></td>
<td><strong>Direccion</strong></td>
<td><strong>Teléfono</strong></td>
<td><strong>Email</strong></td>
<td><b>Ver</b></td>
<td><strong>Editar</strong></td>
<td><strong>Eliminar</strong></td>
</tr>
<?php
while ($row mysql_fetch_array($result))

$editar "update.php?id=$row[id]";
//$ver = "update.php?id=$row[id]";
$borrar "borrar.php?id=$row[id]";
?>
<tr><td><?php echo $row['nombre']; ?></td> 
<td><?php echo $row['direccion']; ?></td> 
<td><?php echo $row['telefono'];?></td>
<td><?php echo $row['email'];?></td>
<td><a href="<?php echo $ver ?>">Ver</a></td>
<td><a href="<?php echo $editar ?>">Modificar</a></td>
<td><a href="<?php echo $borrar ?>">Eliminar</a></td></tr>
<?php
}
?>
</table>
Ocurre que al hacer click en modificar, se dirige a update.php y no me muestra los valores del registro que tendria que tomar por id.
En el update.php lo unico que hago es colocar:
Código PHP:
echo $_GET [nombre]; 
Lo que quiero es que me muestre todos los campos de ese id. Como tendria que hacer?