Answers for "codeigniter query limit"

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
0

codeigniter where_not_in

$names = array('Frank', 'Todd', 'James');
$this->db->where_not_in('username', $names);
// Produces: WHERE username NOT IN ('Frank', 'Todd', 'James')
Posted by: Guest on October-28-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
0

query max in codigniter 4.1.1

$this->db->select_max('display_sequence');
    $this->db->from('acl_menu');
    $query = $this->db->get();
    $r=$query->result();
Posted by: Guest on October-11-2021

Browse Popular Code Answers by Language