Answers for "update query in codeigniter model"

PHP
0

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

	}
Posted by: Guest on July-15-2020
0

codeigniter update query return value

public function update_row(){
		
		$update_rows = array(
			'name' => 'rincky',
			'address' => 'India',
			'contact' => '98545785',
			'department' => 'IT',

		);
		$this->db->where('id', 1 );
		$result = $this->db->update('user', $update_rows);	
		return $result;
	}
Posted by: Guest on July-15-2020

Code answers related to "update query in codeigniter model"

Browse Popular Code Answers by Language