Ver Mensaje Individual
  #8 (permalink)  
Antiguo 02/02/2011, 20:06
arros
 
Fecha de Ingreso: noviembre-2009
Mensajes: 535
Antigüedad: 14 años, 5 meses
Puntos: 25
Respuesta: Consultas a bdd MySql, con Dreamweaver CS5 y PHP

pueba asi
Código PHP:
Ver original
  1. <?php
  2.  
  3. $idregistro=$_POST['idnumreg'];
  4. mysql_select_db($database_conn, $conn);
  5. $query_consulta = "select * from beneficiarios where idregistro =' ".$idregistro."'";
  6. $consulta = mysql_query($query_consulta, $conn) or die(mysql_error());
  7. ?>
  8. <form action="#" method="post" >
  9. <?php
  10. while($fila = mysql_fetch_array($consulta))
  11. {
  12. ?>
  13. <input name="name" value="<?php echo $fila['idregistro']; ?>" />
  14. <input name="name" value="<?php echo $fila['nombre']; ?>" />
  15. <input name="name" value="<?php echo $fila['apepat']; ?>" />
  16. <input name="name" value="<?php echo $fila['apemat']; ?>" />
  17.  
  18. <?php
  19. }
  20. ?>
  21. </form>