hello!everybody,
Now I use xampp for build database.
I need simple database design to country,state,city dropdown cuz my database is not good enought.
please!!!!
thanks!
Wailintun 0 Newbie Poster
Recommended Answers
Jump to Post$sql = "SELECT * FROM YOUR_TABLE "; $run = mysql_query($sql); while($data = mysql_fetch_assoc($run)) { echo $data['main_country']; // and any type of design you like for information }
Jump to PostDo you mean normalize further your table?
COUNTRY country_id | country_name COUNTRY_STATE country_id | state_id STATE state_id | state_name STATE_CITY state_id | city_id CITY city_id | city_name
This one's requires joins, and lesser the size as yours; but I would prefer your design than this cause, …
All 7 Replies

LastMitch
Wailintun 0 Newbie Poster

LastMitch
OsaMasw 13 Loving Helper
AARTI SHRIVAS 2 Posting Pro in Training
alfiechiong 0 Newbie Poster
gon1387 22 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.