I've been doing php for 1 and a half years, and I cant figure this out:
I have a simple table with comments, fields are:
Date | User | Comment
here is what I want to do, i want to query all the comments, and I want to do is group all comments made on the same day, as to display:
The Date:
Comment 1
Comment 2:
Comment 3:
The Second Date:
Comment 1:
Comment 2:
here is the trick, i want to do this all in one query so not to take up precious loading time. The problem is the only way I can think of doing this is to query the table, ask for each disctinct date, and then query the table again for each disctinct date for their comments.