How build a WHERE clause from an array of two-column conditions using CodeIgniter's query builder [duplicate]
I want to make a multiple where query with AND and OR. Suppose my array is: array (size=8) 0 => array (size=2) 'timeline.type' => string 'videos' (length=6) 'timeline.sourceId' => string '7' (length=1) 1 => array (size=2) 'timeline.type' => string 'loadshedding' (length=12) 'timeline.sourceId' => string '5' (length=1) 2 => array (size=2) 'timeline.type' => string 'news' (length=4) 'timeline.sourceId' => string '3' (length=1) 3 => array (size=2) 'timeline.type' => string 'news' (length=4) 'timeline.sourceId' => string '5' (length=1) The above array could be dynamic. I want to make active record
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.