Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/11/2010, 11:19
Avatar de malakian
malakian
 
Fecha de Ingreso: septiembre-2010
Ubicación: $malakian->Colombia();
Mensajes: 469
Antigüedad: 13 años, 7 meses
Puntos: 45
Respuesta: modificar registros de usuarios

hola yo lo haria asi:

cuando haces tu ciclo while metes el id en input hidden:

Código PHP:
Ver original
  1. while($rows=mysql_fetch_array($consulta)){
  2. ?>
  3.             <tr>
  4.                 <td align="center"><input type="hidden" name="id" value="<?php echo $rows["id"]; ?>"/></td>
  5.                 <td align="center"><?php echo $rows["id"]; ?></td>
  6.                 <td align="center"><?php echo $rows["nombre"]; ?></td>
  7.                 <td align="center"><?php echo $rows["user"]; ?></td>
  8.                 <td align="center"><?php echo $rows["perfil"]; ?></td>
  9.             </tr>
  10. <?php
  11. }
  12. ?>

despues en elotro archivo lo reecuperas por $_POST

Código PHP:
Ver original
  1. $id = $_POST["id"]

__________________
Guitar Loco, Desarrollador Web PHP
Sigueme: @jose1x

Última edición por malakian; 09/11/2010 a las 11:26