Welcome Guest, Not a member yet? Register   Sign In
Active Record use the t-sql where id in
#1

[eluser]smartweb[/eluser]
I want to get some ID from 12,15,16,18,22,31,33,34,35,36.
How to use the Active Record?
#2

[eluser]bhumes[/eluser]
Code:
$nums = array(12,15,16,18,22,31,33,34,35,36);
$this->db->where_in('id', $nums);
#3

[eluser]smartweb[/eluser]
Thanks friend.




Theme © iAndrew 2016 - Forum software by © MyBB