Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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

	}	
Source by wlearnsmart.com #
 
PREVIOUS NEXT
Tagged: #update #query #codeigniter #condition
ADD COMMENT
Topic
Name
8+2 =