angelopaolo.gs Posted September 3, 2009 Report Share Posted September 3, 2009 miren tengo este proble toy n practica y toy haciendo un sistema empezando por loguin tengo la base de datos hecha y l loguin pero no puedo lograr que el combo mustre los datos desde la base de datos aca el codigo =D <?php include("conectar.php") ?> <html> <body> <form action= method="post"> <TR> <font FACE="Arial" size=2 ><TD>Ingrese sector</TD> <select name="combo"> <option value="">Seleccione una Opción...</option> <?php $Query = "SELECT id, sector FROM sucursales"; $Res = mysql_query($Query); while($row = mysql_fetch_array($Res)) { echo "<option value='$row[id]'>$row[sector] </option>"; } ?> </select> </TD> </TR> <br><br> <TR> <TD>Ingrese clave</TD> <TD> <INPUT type=password name="clave"> </TD> </TR> <br><br> <INPUT type="submit" value="Entrar"> </body> </html> si alguien me pudiera ayudar con el codigo porfa es ultra urgente =DD= Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now