Where something and something SQL |
[eluser]kolxoznik1[/eluser]
I have read user_guide and do not found WHERE something AND something. So I need to check WHERE a = 3 and a = 5 so as I understand Quote: $this->db->where('user_id', $user_id); two WHERE mean AND ? Code: function add_follow($user_id, $follow_id) is it correct?
[eluser]Patrick Spence[/eluser]
[quote author="kolxoznik1" date="1328148220"]I have read user_guide and do not found WHERE something AND something. is it correct? [/quote] That's how I use it.
[eluser]CroNiX[/eluser]
Yep, that's exactly what the example in the user guide shows for where() in active record. Quote:$this->db->where('name', $name);
[eluser]vbsaltydog[/eluser]
Alternatively using method chaining: Code: $this->db |
Welcome Guest, Not a member yet? Register Sign In |