« Respuesta #1 en: Domingo  3 de Junio de 2007, 22:37 »
									
								 
								
									0
								
							 
							
								Puedes hacerlo de esta manera
-   
- $result = mysql_query("SELECT * FROM music", $link); 
- if ($row = mysql_fetch_array($result)){ 
-   echo "<form>"; 
-   echo "<table border = '1'> \n"; 
-   echo "<tr><td>ID</td><td>Cancion</td><td>Artista</td><td>Año</td><td>Letra</td></tr> \n"; 
-   do { 
-      $i++;    
-      echo "<tr><td><input id='id$i' name='id$i' type='text' value='".$row["id"]."'></td><td><input id='song$i' name='song$i' type='text' value='".$row["song"]."'></td><td><input id='artist$i' name='artist$i' type='text' value='".$row["artist"]."'></td><td><input id='year$i' name='yeay$i' type='text' value='".$row["year"]."'></td><td><input id='liryc$i' name='liryc$i' type='text' value='".$row["liryc"]."'></td></tr> \n"; 
-   } while ($row = mysql_fetch_array($result)); 
-   echo "</table> \n"; 
-   echo "</form>"; 
- } else { 
- echo "¡ No se ha encontrado ningún registro !"; 
- } 
-   
solo es cuestion de colocar el valor del campo en la propiedad value del Text
espero te sirva
Saludos
 
						 
						
							
							
							
							" ExIsTo y A vEcEs PiEnSo "
NOTA:
===========================================================================================================================
Este foro es para ayudar, aprender, compartir... usenlo para eso, 
NO SE RESUELVEN DUDAS POR MENSAJE PRIVADO Y MENOS POR CORREO
===========================================================================================================================