So I know if I build a dynamic SQL string I can do something like the following
$SQL = \"SELECT * FROM \" . $table; $first = 1; foreach($items as $key => $va
foreach( $items as $key => $value ) { $query->where( $key, '=', $value ); }
Is something like that what you're after?
EDIT: Looks like Mark beat me to it.