I need to create an associative array with: date and number of events for that date.
Imagine this table (XPTO) in the database:
timestamp id parameter sensor_id 2013-09-10 12:43:54 1 34 3 2013-07-23 10:32:31 2 54 65 2013-07-23 10:32:31 3 23 45 2013-07-23 10:32:31 4 12 1 2013-09-10 12:43:54 5 1 43 and now, the result that I want is the following: [09.10.2013 12:43:54, 2], [23.07.2013 10:32:31,3]. Any idea to help me?