Welcome Guest, Not a member yet? Register   Sign In
Working with CURRENT_TIMESTAMP
#10

[eluser]CroNiX[/eluser]
I'm guessing that you don't actually have a date in your database that is between those particular dates (2012-08-29 AND 2012-09-05) in the date_created field. Have you verified that you do?

You're returning all dates greater than your end date in the query returning results.

Code:
$this->db->where('date_created >=', $startDate);
$this->db->where('date_created <=', $endDate);

would be the same thing as the between statement.


Messages In This Thread
Working with CURRENT_TIMESTAMP - by El Forum - 09-11-2012, 10:14 AM
Working with CURRENT_TIMESTAMP - by El Forum - 09-11-2012, 11:55 AM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 01:15 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 01:31 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 01:59 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 02:02 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 02:08 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 02:09 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 02:12 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 02:18 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 04:24 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 04:30 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-12-2012, 05:34 PM
Working with CURRENT_TIMESTAMP - by El Forum - 09-13-2012, 03:58 AM
Working with CURRENT_TIMESTAMP - by El Forum - 09-13-2012, 06:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB