vipersuelo Posted February 13, 2011 Report Share Posted February 13, 2011 QUE TAL AMIGOS....KISIERA SABER COMO IMPLEMENTAR LO SIGUIENTE... UNA VEZ KE SELECCIONES EL PAIS....(YA FUNCIONA) ME APARESCA EN EL SIGUIENTE COMBOBOX LAS CIUDADES DE ESE PAIS... AKA DEJO EL COD. ?php //seleccionamos de la BD todos los nombres de las ciudades desde la tabla city $sql_city=("SELECT PAI_NOMBRE FROM PAI_PAIS WHERE 1 "); $query=mysql_query($sql_city) or die ("Error al consultar por conductor:".mysql_error()); echo "<option value ='' >Seleccionar ciudad</option>"; while($datos=mysql_fetch_array($query)) { echo " <option name=\"$datos[PAI_NOMBRE]\"> $datos[PAI_NOMBRE]</option>"; } 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