get_where句で2つのテーブルを結合したいと思いますか?現在、私は次のコードを持っています。Codeigneitorのget_where句で2つのテーブルデータを結合する方法
if ($dep == "0") {
$q = $this->db->get_where('pay', array("date" => $date));
} else {
$q = $this->db->get_where('pay', array("date" => $date, "dep" => $dep));
}
現在、有料table.whatからその取得したデータは、私がやりたいが、「ステータス」フィールドを確認すると同時に、あることtable.iは$ qにそれに参加したい「EMP」に「アクティブ」です。