Welcome Guest, Not a member yet? Register   Sign In
Retrieving results by month...
#4

[eluser]wakey[/eluser]
Thanks for the tip, I thought I was missing something and I now seem to be on the right track.

I've just run the following query on my table directly in phpmyadmin-

Code:
SELECT MONTH(FROM_UNIXTIME(current_time)) FROM hits

and this is returning '1' for each record and running the same query but with MONTHNAME returns 'January' which is strange as all records have a timestamp from April.

Any idea why this is going wrong?


Messages In This Thread
Retrieving results by month... - by El Forum - 04-29-2010, 04:51 PM
Retrieving results by month... - by El Forum - 04-29-2010, 06:03 PM
Retrieving results by month... - by El Forum - 04-30-2010, 12:40 AM
Retrieving results by month... - by El Forum - 04-30-2010, 01:38 AM
Retrieving results by month... - by El Forum - 04-30-2010, 04:02 AM
Retrieving results by month... - by El Forum - 04-30-2010, 04:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB