Welcome Guest, Not a member yet? Register   Sign In
MySQL, using BETWEEN-clause with Active Record
#4

[eluser]CI_Newb[/eluser]
Just so the next person might benefit, solved the issue.

Used custom string.

Code:
$dateRange = "tdate BETWEEN '$start_date%' AND '$end_date%'";
$this->db->where($dateRange, NULL, FALSE);


Messages In This Thread
MySQL, using BETWEEN-clause with Active Record - by El Forum - 01-17-2009, 07:22 AM
MySQL, using BETWEEN-clause with Active Record - by El Forum - 01-17-2009, 07:39 AM
MySQL, using BETWEEN-clause with Active Record - by El Forum - 10-05-2010, 11:35 PM
MySQL, using BETWEEN-clause with Active Record - by El Forum - 10-06-2010, 09:10 PM
MySQL, using BETWEEN-clause with Active Record - by El Forum - 03-05-2013, 12:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB