📜  获取结果计数 codeigniter - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:31.828000             🧑  作者: Mango

代码示例3
$this->db
  ->where(['field'=>'foo'])
  ->from("tablename")
  ->count_all_results();

//OR 
$this->db
  ->where(['field'=>'foo'])
  ->count_all_results("tablename");