Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB