Welcome Guest, Not a member yet? Register   Sign In
Database Helper - Between clause
#5

[eluser]jmadsen[/eluser]
Well, you're in the Ignited Code section, so go ahead and write one and post it up.

But to explain what CronNix was saying, the Active Record syntax must support only language that is valid for ALL databases that CI supports, so if any of them don't have a BETWEEN keyword, it has to be left out of the code base

You can also just write:

Code:
->where('date >', $date1)->where('date <', $date2);

Which is safer, IMO


Messages In This Thread
Database Helper - Between clause - by El Forum - 05-10-2012, 07:07 PM
Database Helper - Between clause - by El Forum - 05-10-2012, 08:33 PM
Database Helper - Between clause - by El Forum - 05-10-2012, 08:38 PM
Database Helper - Between clause - by El Forum - 05-10-2012, 10:14 PM
Database Helper - Between clause - by El Forum - 05-11-2012, 03:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB