cancel
Showing results for 
Search instead for 
Did you mean: 

How to get parent category id using product id - mysql?

Highlighted

How to get parent category id using product id - mysql?

How to get parent category id,


Books/Spiritual Books/Boys

Books -> 5 [id]

Spiritual Books -> 18[id]

Boys -> 78[id]


How to get parent category id using product id using mysql, here Books is parent category.

Note : My product assigned Boys category only.