Thank you very much, ultraslacker.
An obsur point is coming to me wtih your explanation:
what dio you mean by "parent" in the "place" table.
If I understood your explanation, my tables could be like this:
city table:
cityID | city_name| countryID
country table:
countryID | country_name | continentID
continent table:
continentID | continent_name
Is that right?
And the query could be:
Select city., country., continent.* FROM city, country, continent WHERE continent.continentID= country.continentID etc....
But to be more explicit here is a table tree:
image1
- general category 1
--- category 3
------ continent 2
--------- country 3
------------ city 4
image 2
- general category 3 (it's an obligation to have it)
--- category 5 (it's an obligation to have it)
------ none (no continent, country and city, it's optionnal)
image 3
- general category 1 (look with image 1)
--- category 2
------ continent 2
--------- country 3
------------ city 5
the caracteristics of image are in the "phototek" table.
my problem is how to do that by the way , for exemple, if I choose a continent it give me automaticaly all the countries and the same things with cities. AND the most important how can retrieve the result for an image, for exemple image 1, with the caracteristics of general category, category, continent, country and city?
Sincerely,
Marc
P.S: my brain is going to be liquified....