Hi there,
I have 2 tables related on a one to many basis. I want to display the data when called as follows:
Table 1 Entry 1:
Table 2 Related Entry 1
Table 2 Related Entry 2
Table 1 Entry 2:
Table 2 Related Entry 1
etc
etc
However at the moment all i can get it to display is:
Table 1 Entry 1:
Table 2 Related Entry 1
Table 1 Entry 1:
Table 2 Related Entry 2
Table 1 Entry 2:
Table 2 Related Entry 1
etc
etc
So its repeating the header data from the 1st table instead of simply writing it once then including all the related data from table 2.
I just wondered if anyone could suggest how i could get round this. My original sql uses a WHERE clause and i was thinking it might be possible with a JOIN, but im not sure how to use these?
Cheers