ok.
DATE, VENUE_ID, TICKET_ID, and NAME are the feilds that I need returned. I need it to only return records with a DISTINCT combination of DATE and VENUE_ID WHERE TYPE_ID is what is searched for.
If this is my table:
TICKET_ID | DATE | VENUE_ID | NAME | TYPE_ID
01 | 01-01-2003 | 01 | Concert 1 | 01
02 | 01-01-2003 | 01 | Concert 1 | 01
03 | 02-02-2003 | 02 | Concert 2 | 01
04 | 02-02-2003 | 02 | Concert 2 | 01
05 | 03-03-2003 | 03 | Sporting 3 | 02
06 | 03-03-2003 | 03 | Sporting 3 | 02
and someone searches for TYPE_ID=01 it should return:
TICKET_ID | DATE | VENUE_ID | NAME
02 | 01-01-2003 | 01 | Concert 1
04 | 02-02-2003 | 02 | Concert 2
When I tried the code posted by "nnichols" php was unable to query the database.