Welcome Guest, Not a member yet? Register   Sign In
confusion with where query and arrays
#1

[eluser]martynrlee[/eluser]
Hi All,

Just struggling with a database query and hoping someone might be able to help:

I am trying to do the following :

Code:
$this->db->where_in('style', $styleArray);

and

$this->db->where_in('paint', $paintArray);

$this->db->get('gallery');


I have tried lots of methods but can only seem to get or_where_in working I guess I need an equivalent method to 'and_where_in'

Any ideas?

Thanks, Martyn.


Messages In This Thread
confusion with where query and arrays - by El Forum - 08-25-2010, 07:32 AM
confusion with where query and arrays - by El Forum - 08-25-2010, 08:02 AM
confusion with where query and arrays - by El Forum - 08-25-2010, 09:46 AM
confusion with where query and arrays - by El Forum - 08-25-2010, 09:53 AM
confusion with where query and arrays - by El Forum - 08-25-2010, 10:00 AM
confusion with where query and arrays - by El Forum - 08-25-2010, 10:27 AM
confusion with where query and arrays - by El Forum - 08-25-2010, 10:33 AM
confusion with where query and arrays - by El Forum - 08-25-2010, 10:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB