I have three columns in my category table: ID, name and parent_id. If the category is parent there is 0 under the parent_id, if it’s not parent category id is recorded instead. I would like to get all subcategory ids with one parent category id as an array.
How is that possible using php?
Can anyone please help?
Thanks in advance
This is the simplest solution I can think of right now, for more you need to give us more code, that you have written so far, and information on where you were stuck.