rudipratm

Model-Test

Jan 15th, 2020
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function update($data, $id){
  2.     $this->db->where('id' => $suserid);
  3.     $this->db->update('tabel', $data);
  4.     if ($this->db->affected_rows() > 0) {
  5.         return true;
  6.     }else{
  7.         return false;
  8.     }
  9. }
RAW Paste Data