Welcome Guest, Not a member yet? Register   Sign In
how to do this query
#4

[eluser]danmontgomery[/eluser]
AR doesnt' support grouped where statements, you woulud need to do it manually.

Code:
$this->db->where('(`field1` = "'.$var1.'" OR `field2` IS NULL)', null, false)->where('field3', 'some value');


Messages In This Thread
how to do this query - by El Forum - 06-17-2010, 02:37 PM
how to do this query - by El Forum - 06-17-2010, 03:04 PM
how to do this query - by El Forum - 06-17-2010, 03:30 PM
how to do this query - by El Forum - 06-17-2010, 03:48 PM
how to do this query - by El Forum - 06-17-2010, 03:49 PM
how to do this query - by El Forum - 06-17-2010, 03:50 PM
how to do this query - by El Forum - 06-17-2010, 03:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB