Answers for "multiple where clause in codeigniter for single column"

PHP
2

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();
Posted by: Guest on July-15-2020
0

get single column in codeigniter

$this->db->select('name');
Posted by: Guest on November-22-2020

Code answers related to "multiple where clause in codeigniter for single column"

Browse Popular Code Answers by Language