Nested Menu categories with single MySQL query using PHP?

Today I am gonna write about Nested Menu Categories with Single MySQL Query, Here I will show you how to create a simple nested menu with single Query and Single Table.

I am giving inline comments so that you can follow easily

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

5 1 vote
Article Rating
Notify of
1 Comment
Newest Most Voted
Inline Feedbacks
View all comments
Mayank Sanghvi
Mayank Sanghvi
2 years ago


Why you used ref? Why we can’t do it with without ref.? What is the benefit?
I tried it without ref. Now i got why we are using reference. Thanks for the post. Protection Status
Would love your thoughts, please comment.x