Bladephp: Now with 7+ codeigniter, php, and laravel project 7+ php project From $18/Year From Rs. 1000/Year

or_where_in condition in Codeigniter

by
Category:codeigniter
codeigniter mysql
or_where_in condition in Codeigniter

The or_where_in methods allows you to specify multiple values in a WHERE clause. Generates a WHERE field IN (‘item’, ‘item’) SQL query joined with OR if appropriate.

Let’s create a or_where_in method in codeigniter

$id= array('10', '20', '30');
$this->db->or_where_in('id', $id);
// Produces: OR id IN ('10', '20', '30')

0 Comments


Html code work in comment box


Related Post