1 Table Name: Country
id country_name
1 India
2 America
2 Table Name: States
id state_name country_id
1 punjab 1
2 california 2
3 Table Name: Cities
id city_name state_id
1 Ludhiana 1
2 Chico 2
here is my code which i had written... Visit: tinyurl.com/myphpmysqli
At this time i'm getting a result if there are thousands of records in each table then how do i fetch using a single query with mysqli joins??
Country -> states -> cities
like this.. Here my image the data will look like...
PHP version: 5.6.16 phpmyadmin: Version information: 4.5.2