• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Retrieving results by month...

#3
[eluser]WanWizard[/eluser]
As per the MySQL manual, the MONTH() function requires a MySQL date as input, not a timestamp.
Try:
Code:
$this->db->where('MONTH(FROM_UNIXTIME(current_time))', $month);


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.