Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

codeigniter count rows

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

//OR 
$this->db
  ->where(['field'=>'foo'])
  ->count_all_results("tablename");
Source by www.kodingmadesimple.com #
 
PREVIOUS NEXT
Tagged: #codeigniter #count #rows
ADD COMMENT
Topic
Name
8+1 =