Update In Codeigniter Query

[Solved] Update In Codeigniter Query | Php - Code Explorer | yomemimo.com
Question : update query in codeigniter using where condition

Answered by : black-bat-xw45nii1k5qb

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

Source : https://wlearnsmart.com/update-query-in-codeigniter-using-where-condition/ | Last Update : Wed, 22 Jul 20

Question : codeigniter update query return value

Answered by : black-bat-xw45nii1k5qb

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

Source : https://wlearnsmart.com/update-query-in-codeigniter-using-where-condition/ | Last Update : Wed, 22 Jul 20

Question : codeigniter 3 update

Answered by : alberto-peripolli

$data = array( 'title' => $title, 'name' => $name, 'date' => $date
);
$this->db->where('id', $id);
$this->db->update('mytable', $data);

Source : | Last Update : Fri, 13 Nov 20

Answers related to update in codeigniter query

Code Explorer Popular Question For Php