I have the following folders in the table 'Folders' in my database:
- Folder1
- Folder2
- Folder3
- Folder4
The path of the folders - Folder1\Folder2\Folder3\Folder4
When i click on Folder3,i have to get the path as - Folder1\Folder2\Folder3.For this i am passing the folderID of Folder3.
How can i get this result ?
table structure
FolderiD FolderName ParentID
1 Folder1 0
2 Folder2 1
3 Folder3 2
4 Folder4 3