Codeigniter Update the Data by database.
Controller
public function edit_model_footer($id){
$data['edit_model'] = $this->db->where('id',$id)->get('model_footer')->row_array();
$this->load->view('admin/edit_model_footer',$data);
}
Table Name: ==> model_footer
Page Name =>'admin/edit_model_footer'
Function ==> edit_model_footer.
$id = Taken by view pages where id already pass.
Model.
if you want to use the model then you can use this type code.
public function edit_model_footer (){
$this->db->where('id',$id)->get('model_footer')->row_array();
}
row_array ==> get one value by id.
result_array ==> get total data by database.
0 comments:
Post a Comment
Thanks