• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.