Hi,
I am displaying some data from a mySQL database. A user uses a day, month and year dropdown to select a date and once they click submit the script displays entries for that date from a "name" column
If I select Dec 12, 2002 and in my table there are 6 rows like this
name | Date
John | 2002-12-01
John | 2002-12-01
Pat | 2002-13-01
Mike | 2002-12-01
Mike | 2002-12-01
Sarah | 2002-12-01
I do a SELECT where the date is equal to what is in the Date column and then in a while loop I display the corresponding name. What i need to do is this: I only want to display any name once, even if it is in the column more than once for a given date. If I were to search for 2002-12-01 I would get this:
John
John
Mike
Mike
Sarah
I need this to display as:
John
Mike
Sarah.
Can someone help me with this?
Thanks,
Martin