Welcome Guest, Not a member yet? Register   Sign In
or_where problem with active record
#4

[eluser]CroNiX[/eluser]
Actually, you could use a WHERE IN for your query, since it has to be one page number or the other.

Code:
$this->db->where('article_id',$id);
$this->db->where_in('page_number', array($pages[0], $pages[1]));


Messages In This Thread
or_where problem with active record - by El Forum - 06-20-2012, 05:11 PM
or_where problem with active record - by El Forum - 06-20-2012, 05:17 PM
or_where problem with active record - by El Forum - 06-20-2012, 05:19 PM
or_where problem with active record - by El Forum - 06-20-2012, 05:23 PM
or_where problem with active record - by El Forum - 06-20-2012, 05:40 PM
or_where problem with active record - by El Forum - 06-20-2012, 07:56 PM
or_where problem with active record - by El Forum - 06-21-2012, 01:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB