Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/11/2010, 08:43
Avatar de Heiroon
Heiroon
 
Fecha de Ingreso: junio-2010
Ubicación: Caracas, Venezuela - Por ahora...
Mensajes: 495
Antigüedad: 13 años, 11 meses
Puntos: 63
De acuerdo Respuesta: Tratando de update a Record from MySql

te los pone arriba porq el bucle q hiciste solo llena los echo q contiene... prueba de esta forma:

Código PHP:
Ver original
  1. <html>
  2. <form>
  3.   <?php
  4.  
  5. $con = mysql_connect("localhost","root","");
  6. if (!$con)
  7. {
  8. die('Could not connect: ' . mysql_error());
  9. }
  10.  
  11. mysql_select_db("hoja", $con);
  12. $Estudiante= "'".$_POST['Estudiante']."'";
  13. $result = mysql_query("SELECT * FROM hr WHERE Numero=$Estudiante");
  14.  
  15. while($row = mysql_fetch_array($result))
  16. { ?>
  17.   Numero de Estudiante:
  18.   <input type="text" name="Estudiante" value="<?=$row['Numero']; ?>"/>
  19.   Nombre:
  20.   <input type="text" name="nombre" value="<?=$row['Nombre'] ; ?>" />
  21.   Fecha:
  22.   <input type="text" name="fecha" value="<?=$row['Fecha']; ?>" />
  23.   <? } ?>
  24.   <br/>
  25. </form>
  26. </html>

Saludos!