newbie: how to return one iteration *per unique date (DAY!)* in a timestamp column?

newbie: how to return one iteration *per unique date (DAY!)* in a timestamp column?

am 03.08.2009 00:42:05 von Govinda

--Apple-Mail-4-362785705
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit

Hi all

I posted this on the PHP-db list, but it is sunday.. and with so
little traffic today, perhaps no one will mind if I post this here
too? (with hoped I'll get a quicker pointer?).

I'm translating some code from another server-side language into PHP,
and I need something that 'summarizes' results found from a MySQL
SELECT. I.e. -

$foundTrackingRows=mysql_query("SELECT...
while ($TrackingRow = mysql_fetch_object($foundTrackingRows)) {...

...such that the while loop only loops *ONCE per unique _date_ found
(regardless of the hour/min./sec.)* in my column which is of type
TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
PRIMARY KEY

For example, if I have column values like these:
2009-08-01 07:01:00
2009-07-30 18:16:37
2009-07-30 17:49:06
2009-07-27 17:35:52
2009-07-27 17:24:21
2009-07-27 17:23:03
...then my while { loop would only fire 3 times.

I do my RTFM; can someone just give me a good point in the right
direction.
Thanks!

------------
John Butler/(Govinda)
govinda.webdnatalk@gmail.com


--Apple-Mail-4-362785705--