emprit

model_ganti_pass

Sep 30th, 2012
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. public function gantipass($nama, $password1){
  2.         $cek = $this->db->select('nama')->where('nama',$nama)->get('user');
  3.         if($cek->num_rows==0){
  4.             return FALSE;
  5.             }else{
  6.             $kudet = array('password'=>md5($password1));
  7.             $query = $this->db->where('nama',$nama)->update('user',$kudet);
  8.             return $query;
  9.             }
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment