Ver Mensaje Individual
  #5 (permalink)  
Antiguo 15/06/2008, 16:28
Avatar de jaronu
jaronu
 
Fecha de Ingreso: febrero-2008
Mensajes: 2.183
Antigüedad: 16 años, 2 meses
Puntos: 52
Respuesta: Pregunta por abm no puedo actualizar al usuario...

pon asi el formulario de mostrar, pero si por url no te sale pon el valor de $id en un campo oculto:

Código PHP:
    <?php 

 $rs 
mysql_query("select Id, Nombre , Apellido, Direccion, Telefono from datos"); 
    
?> 
    <table border="1"> 
    <tr> 
    <th>Id</th> 
    <th>Nombre</th> 
    <th>Apellido</th> 
    <th>Direccion</th> 
    <th>Telefono</th> 
    </tr> 
    <?php 

        
while (list($Id$Nombre$Apellido$Direccion$Telefono) = mysql_fetch_row($rs)) { 
    
?> 
    <tr> 
    <td><a href="actualiza_usuario.php?id= <? $Id ?>"><? echo $Id?></a></td> 
    <td><? echo $Nombre?></td> 
    <td><? echo $Apellido?></td> 
    <td><? echo $Direccion?></td> 
    <td><? echo $Telefono?></td> 
    </tr> 
    <? 
        

    
?> 
    </table> 

<form action="actualiza_usuario.php?id=<? $Id ?>" method="post"> 
<input type="submit" value="actualizar usuario" /> 
</form>

Última edición por jaronu; 15/06/2008 a las 16:36