Frank Allen
0
Q:

update query in codeigniter using where condition

public function update_row(){
		
		$update_rows = array('field-name' => 'field-data',);
		$this->db->where('id', 1 );
		$this->db->update('table-name', $update_rows);	

	}	
0
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);	
		
	}	
0

New to Communities?

Join the community