MarioPro
12-14-2004, 12:18 PM
Hi,
I’m dealing with a little problem on the architecture of my MySQL database due to its complexity and I would appreciate any tips on the following:
I’m building a database for my image bank and want to categorize the images so that they may be viewed according with a specific multiple classification. What I have now is an image that belongs to a Category A and has a sub-category A1, for example: “People” / “Health”.
But I would like to have the image to be seen on a category “Concepts” with a sub-category “Stress” or even category “Health” and sub-category “Mental Health” or all of them, according to the user’s choice. If the user clicks on the category “Concepts” he will be able to see my image IMG_5454.jpg and also he could see that same image on the “Health” category.
I now have an “image”, “category” and “subcategory” tables. What could be the best structure for use with PHP to select images that meet the multiple classification?
Thanks in advance for any help
I’m dealing with a little problem on the architecture of my MySQL database due to its complexity and I would appreciate any tips on the following:
I’m building a database for my image bank and want to categorize the images so that they may be viewed according with a specific multiple classification. What I have now is an image that belongs to a Category A and has a sub-category A1, for example: “People” / “Health”.
But I would like to have the image to be seen on a category “Concepts” with a sub-category “Stress” or even category “Health” and sub-category “Mental Health” or all of them, according to the user’s choice. If the user clicks on the category “Concepts” he will be able to see my image IMG_5454.jpg and also he could see that same image on the “Health” category.
I now have an “image”, “category” and “subcategory” tables. What could be the best structure for use with PHP to select images that meet the multiple classification?
Thanks in advance for any help