I just learned how to do this properly...
What you want to do is have it all handled in your MySQL Query...


In my case, which might not work for you, I have:

Code:
$select = array();
$select[] = "MONTH(timeStamp) AS theMonth";
$select[] = "DAY(timeStamp) AS theDay";
That's just part of my query...

Later, when I want to echo the results, I use:...