我想写一个像select*from bookdetails where editionId=$edid1 or editionId=$edid2;
Codeigniter 查询一样的查询。
下面是我的 Codeigniter 查询
public function get_rare_outofprintBooks($edid1,$edid2)
{
$this->load->database();
$query = $this->db->get_where('bookdetails',array('edition_id'=>$edid1),array('edition_id'=>$edid2)); //i tried like this but its NOT Working
if ($query->num_rows() > 0)
{
foreach ($query->result() as $row)
{
$data[] = $row;
}
return $data;
}
return false;
}
请帮我解决这个问题。