Welcome Guest, Not a member yet? Register   Sign In
CI pass array to model where clause
#3

(01-10-2016, 09:25 PM)skunkbad Wrote: $this->db->where_in( 'row_id', array('1','2','3') );

Hello dear,

I am stuck in a condition.

I have array of keywords like array('business','permanent')

now can you please tell me how to pass this array into where clause
because where_in is only valid for ids(integers)

and when i am using the below statement it through error

$this->db->where('Keyword',array('business','permanent')) ;
or
$this->db->or_where('Keyword',array('business','permanent')) ;
or
$this->db->or_where(array('business','permanent')) ;


Please help
Thank you.
Reply


Messages In This Thread
RE: CI pass array to model where clause - by mubashir - 08-06-2018, 11:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB