Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/09/2006, 09:58
Avatar de Nova
Nova
 
Fecha de Ingreso: enero-2003
Ubicación: Hyo
Mensajes: 832
Antigüedad: 21 años, 3 meses
Puntos: 1
Una pekeña consulta:
Creo k asi me va a ser muy extenso el codigo pensaba hacer de otra forma.
Código PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="">
  <div align="center">
    <table width="200" border="1">
      <tr>
        <td>usuario</td>
        <td><input name="usuario" type="text" id="usuario"></td>
      </tr>
      </table>
  </div>
</form>
</body>
</html>
<?
$db 
mysql_connect("localhost","root","") or die ("Unable to connect to MySQL server.");
$datos=mysql_select_db ("proyectodb",$db);
$consulta"SELECT * from usuario WHERE usuario='Admin'";
$result =mysql_query($consulta,$db) or die(header ("No se pudo realizar la consulta"));
while (
$row mysql_fetch_array($result)) { 
$usuario=$row['usuario'];// DE AQUI SE CAMBIA EL VALOR DE LA CAJA DE TEXTO
}
?>
gRACIAS, SE PODRIA HACER ASI, O TENGO K HACER PASAR EL VALOR CON OTRA VARIABLE NECESARIAMENTE (COMO SE DIO SOLUCION ARRIBA).
__________________
http://about.me/jemano