I have a table as shown in the image. I want to generate output for the given user like if I select "aswarojgar" then I want to fetch all the user who comes under "aswarojgar"
output example for "aswarojgar"
|---------------------|------------------|
| email | side |
|---------------------|------------------|
| Mukesh123 | left |
|---------------------|------------------|
| Poonam123 | left |
|---------------------|------------------|
| Pravin123 | right |
|---------------------|------------------|
| Kamal123 | left |
|---------------------|------------------|
| Babi123 | right |
|---------------------|------------------|
i want to create a structure like this
aswarojgar
/ \
Mukesh123
/ \
Poonam123 Pravin123
/ \ / \
Kamal123 Babi123