aussiewarrior
New Member
Hello
I have an array that looks like this:
$cities = array(
1 => array('Delhi','Mumbai','Kolkata','Bangalore','Hyderabad','Pune','Chennai','Jaipur','Goa'),
2 => array('Beijing','Chengdu','Lhasa','Macau','Shanghai'),
3 => array('Los Angeles','New York','Dallas','Boston','Seattle','Washington','Las Vegas'),
4 => array('Birmingham','Bradford','Cambridge','Derby','Lincoln','Liverpool','Manchester')
);
I want to know if somebody can help me so these details are pulled out of a mysql database.
the table in the database has to fields. Country value and State Name
I want it to read from the database so everytime i update the database i don't want to have to update the array manually.
Many Thanks in advance
Your help would be much appreciated.
I have an array that looks like this:
$cities = array(
1 => array('Delhi','Mumbai','Kolkata','Bangalore','Hyderabad','Pune','Chennai','Jaipur','Goa'),
2 => array('Beijing','Chengdu','Lhasa','Macau','Shanghai'),
3 => array('Los Angeles','New York','Dallas','Boston','Seattle','Washington','Las Vegas'),
4 => array('Birmingham','Bradford','Cambridge','Derby','Lincoln','Liverpool','Manchester')
);
I want to know if somebody can help me so these details are pulled out of a mysql database.
the table in the database has to fields. Country value and State Name
I want it to read from the database so everytime i update the database i don't want to have to update the array manually.
Many Thanks in advance
Your help would be much appreciated.