Answers for "use multiple and in where clause codeigniter 3"

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

Update Query in Codeigniter Using Multiple Where Condition

public function update_row(){
		
		$update_rows = array('name' => 'rincky');
		$multipleWhere = array('id' => $ids, 'name' => $name, 'status' => 1 );

		$this->db->where($multipleWhere);		
		$this->db->update('user', $update_rows);	
		
	}
Posted by: Guest on July-15-2020

Code answers related to "use multiple and in where clause codeigniter 3"

Browse Popular Code Answers by Language