I am trying to get results from other table using LEFT JOIN. I want to show user location using Join.
My database looks like this:
User table:
#ID | location_id | email | pass
------------------------------------
1 | 1 | ... | ....
Locataion table:
#ID | county_id | city_id | user_id
------------------------------------------
1 | 1 | 1 | 2
Coutnries table:
#ID | name |
-------------------
1 | Usa
2 | Belgium
3 | Serbia
Cities table:
#ID | name |
-------------------
1 | Berlin
2 | London
3 | New Your