Bladephp: Now with 8+ codeigniter, php, and laravel project 8+ php project From $37/Month From Rs. 2499/Month

where_in condition in Codeigniter

by
Category:codeigniter
codeigniter laravel
where_in condition in Codeigniter

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

Let’s create a where_in method in codeigniter

$id = array('1', '15', '20');
$this->db->where_in('id', $id);
// Produces: WHERE id IN ('1', '15', '20')

0 Comments


Html code work in comment box


Related Post