Answers for "codelgniter database get query"

PHP
3

get result count codeigniter

public function record_count() {
   return $this->db->count_all("tablename");
}
Posted by: Guest on November-02-2020
0

cideigniter orLike()

$this->db->like('title', 'match'); $this->db->or_like('body', $match);
// WHERE `title` LIKE '%match%' ESCAPE '!' OR  `body` LIKE '%match%' ESCAPE '!'
Posted by: Guest on October-20-2020

Browse Popular Code Answers by Language