I Have 1 Drop Down Which Is Used For Category (Food, Drink etc)
In my MYSQL Table (t_menu_category) I Have :
+----+---------------+------------------
I have a simple solution to select states depending on a country php/javascript/mysql
MySQL tables
country
country_code varhar(5)
country_name varchar(100)
state
country_code varhar(5)
state_code varchar(5)
country_name varchar(100)
Country/State selection in main.php file
Country
Execute($sql);
echo '';
echo '';
$rs->MoveFirst();
while (!$rs->EOF) {
echo '';
$rs->MoveNext();
}
echo '';
?>
State
Execute($sql);
echo '';
echo '';
$rs->MoveFirst();
while (!$rs->EOF) {
echo '';
$rs->MoveNext();
}
echo '';
?>
Java Script