我正在尝试计算以 display_id 作为参数的 bookdetails 表的行数。说我通过了$id='3'
。但我没有得到输出。我认为我正在尝试的代码是错误的。请帮助我正确编写此查询
//--- Counting the rows of bookdetails of table where display_id is as argument-------------------------------------------------------------
public function record_count_for_secondtopBooks($id) {
$this->load->database();
return $this->db->count_all("bookdetails",array('display_id'=>$id));
}