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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now