i am creating a basic insert product page in ecommerce website(admin panel)
where i have a table category
(with male
or female
)
then a man
table in which i put product category like grooming kit watches etc
same in female
table (makeup item and dresses etc)
and third table product
where all product where all products would be inserted okay
so now i want to link them in such a way that (suppose a drop down interface)
in category i select male then it take id of male from "category" table suppose it 1 and then from another dropdown of "male" table if i select grooming kit which has id suppose 1 there the product table take these id's from these table automatically... for example i am describing table structure
CATEGORY
CAT_ID CAT_TITLE *(cat_id to auto increment so if i add kids = 3 )
1 MALE
2 FEMALE
MALE
M_ID M_TITLE *M_ID auto increment
1 GROOMING KIT
2 WATCHES
FEMALE *f_id auto increment
F_ID F_TITLE
1 DRESSES
2 SHOES
product
p_id(*auto increment) CAT_ID(*must auto matically take id from category) g_id(*must take id from male or female title)
so that i know where to insert product on page