My MySQL table contains a field Date and a field Information; there are about 5000 records, and the value of Date can be one of about 20 values. I want to generate a query that will return the various dates and the number of records with that value of Date:
Code:
Date No of records with this date
<date1> <for example: 123>
<date2> <for example: 76>
<date3> <for example: 86>
[code]
The intention is to populate the dropdown list "Kies een datum..." on the top right of [url=http://www.pdavis.nl/ShowSet.php?]this page[/url], which - at the moment - is populated from a separate manually filled table with the various dates and the number of records (photos) for each date - not very elegant.