Welcome Guest, Not a member yet? Register   Sign In
$this->db->where
#3

(05-25-2017, 08:24 AM)rtenny Wrote: That depend on the type of the condition.
is this either: WHERE id=a OR id=b OR id=c
or: where id=a AND id=b AND id=c
or: where id IN (a,b,c)

Have a look at the tutorial:
https://www.codeigniter.com/userguide2/d...tml#select
look at or_where, where_in, etc depending on what you try to do

WHERE id=a OR id=b OR id=c is what I meant


Thanks
Reply


Messages In This Thread
$this->db->where - by Knutsford - 05-25-2017, 08:11 AM
RE: $this->db->where - by rtenny - 05-25-2017, 08:24 AM
RE: $this->db->where - by Knutsford - 05-25-2017, 08:33 AM
RE: $this->db->where - by rtenny - 05-25-2017, 08:43 AM
RE: $this->db->where - by Knutsford - 05-25-2017, 09:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB