I have two Table call category table and product table
and single product can have multiple categories for eg: 1,2,3,
in category page like to show all products related to categoryid
I wrote queries E.g (select * from producttable where categoryid = 1), how would i match particular categoryid with ProductTable categoryid column ?
following are my table information
Category Table
id | categoryname
1 | abc
2 | pqr
3 | xyz
product Table
id | productname | categoryid
1 | abc | 1,2,3