multiple where clause in codeigniter for single column code example
Example 1: how to use multiple where condition in codeigniter
$data = array('name' => 'Rockky');
$multiClause = array('id' => $ids, 'name' => $name, 'status' => 1 );
$this->db->where($multiClause);
$query = $this->db->get('table-name', $data);
return $query->result();
Example 2: get single column in codeigniter
$this->db->select('name');