I am using CodeIgniter. I need to understand how where
and or_where
condition working in codeigniter query builder.
I need an output like where a="" AND b="" AND c="" OR d="" AND e=""
so I tried an associative array.
$where= array('a'=>$firstname,'b'=>$lastname,'c'=>1);
$or_where= array('d' =>$customer_mobile,'e'=>1);
But I am getting the output
where a="" AND b="" AND c="" OR d="" OR e=""
Would you help in out in this?
Yes, My question is different. I asked about the or_where
condition. Please check my expect output and getting output. And the duplicate question is different.