Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/04/2010, 15:36
Avatar de locmasm
locmasm
 
Fecha de Ingreso: noviembre-2007
Ubicación: México D. F.
Mensajes: 301
Antigüedad: 16 años, 5 meses
Puntos: 1
Respuesta: Recuperar dato de la bd y ponerlo en textbox ??

Yo lo haría así:

1. Primero llamamos a la base de datos

Código PHP:
$resp mysql_query("select * from BASE where id=''ALGUNA_ID") or die(mysql_error());
$datos mysql_fetch_array($resp); 
2. Para ponerlo en el textbox:

Código PHP:
<input type="text" name="campo_de_la_base" value="<?=$datos['campo_de_la_base']?>">
Saludos.