Welcome Guest, Not a member yet? Register   Sign In
Combining AND & OR in MySQL Queries
#2

[eluser]jcopling[/eluser]
I am yet to find a way to accomplish this using strictly the CI framework so I would accomplish this by doing the following:
Code:
$this->db->from("Persons");
$this->db->where("LastName","Svendson");
$this->db->where("(FirstName='Tove' OR FirstName='Ola')");


Messages In This Thread
Combining AND & OR in MySQL Queries - by El Forum - 10-03-2008, 07:58 AM
Combining AND & OR in MySQL Queries - by El Forum - 10-03-2008, 08:41 AM
Combining AND & OR in MySQL Queries - by El Forum - 10-03-2008, 08:52 AM
Combining AND & OR in MySQL Queries - by El Forum - 10-03-2008, 10:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB