Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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();
Source by wlearnsmart.com #
 
PREVIOUS NEXT
Tagged: #multiple #condition #codeigniter
ADD COMMENT
Topic
Name
8+4 =