Hi all,
I have done this before but it's been so long that I don't remember how I did, neither could I find the code for what I am looing for.
I have a one to many situation where one ID could have one or more records associated with it.
In my case, the maximum number of records that can be associated each ID value is 4.
What I would like to do for the user is rather than display the records like this:
ID file
1 file1
1 file2
1 file3
1 file4 etc,
I will like to display just one ID like
1 and then all the files associated with are displayed.
For instance:
ID file
1 file1
file2
file3
file4
_______________________________
2 file1
2 file2
____________________________
3 file1
_________________________________
4 file1
4 file2
4 file3
___________________________________
I hope you get the jist.
so far I can't seem to get started on it.
Any help would be greatly appreciated.
I have done this before but it's been so long that I don't remember how I did, neither could I find the code for what I am looing for.
I have a one to many situation where one ID could have one or more records associated with it.
In my case, the maximum number of records that can be associated each ID value is 4.
What I would like to do for the user is rather than display the records like this:
ID file
1 file1
1 file2
1 file3
1 file4 etc,
I will like to display just one ID like
1 and then all the files associated with are displayed.
For instance:
ID file
1 file1
file2
file3
file4
_______________________________
2 file1
2 file2
____________________________
3 file1
_________________________________
4 file1
4 file2
4 file3
___________________________________
I hope you get the jist.
so far I can't seem to get started on it.
Any help would be greatly appreciated.