Answers for "codeigniter 3 limit"

PHP
1

where_in codeigniter

$this->db->select('ae_users.employee_id, ae_users.emp_name, ae_users.emp_name2, ae_users.emp_name3');
		$this->db->from('ae_users');                
		$this->db->where_in('ae_users.employee_id',$employee_ids);
     
		$query =$this->db->get();
             
		if ($query->num_rows()) {
			return $query->result_array();
		} else {
			return 0;
		}
Posted by: Guest on September-16-2020
0

codeigniter 3 limit

// Produces: LIMIT 20, 10 (in MySQL.  Other databases have slightly different syntax)
$this->db->limit(10, 20);  
$this->db->limit(10);  // Produces: LIMIT 10
Posted by: Guest on September-04-2021

Browse Popular Code Answers by Language