Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/07/2014, 08:11
Avatar de cluster28
cluster28
 
Fecha de Ingreso: enero-2008
Ubicación: Donostia - San Sebastián
Mensajes: 756
Antigüedad: 16 años, 4 meses
Puntos: 32
Respuesta: Asignación variable php a value html

Código HTML:
<?php
    $consulta = mysql_query("SELECT * FROM puertos");
    $fila = mysql_fetch_array($consulta);
?>

<input type="text" value="<?php echo $fila['Puerto']; ?>"/>