如何在codeigniter中组合2个这个id?

时间:2016-08-12 08:51:38

标签: php mysql arrays codeigniter

我的代码:

$this->db->where("followers.id_follower",$id_user); 
$this->db->where("users.id_following",$id_user);    

我的模特:http://pastebin.com/5ipyj6iA

enter image description here

1 个答案:

答案 0 :(得分:0)

你可以试试这个问题的where子句:

$where = "followers.id_follower=$id_user AND users.id_following= $id_user";
$this->db->where($where);