How can I use your code when we have to use category with multiple fields(for example editing user info).
For example -
users table have following fields --->user_id,name,gender,category
and category table have following fields ---> id,category,parent_id
I am not able to figure out how can I use category field with other tables.