Advertisement
Guest User

Untitled

a guest
Oct 20th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. public function registerUser() {
  2. $CI =& get_instance();
  3.  
  4. $result = $CI->db->query("INSERT Into USERS VALUES ('$this->sp_firstname','$this->sp_lastname','$this->sp_email','$this->sp_password','$this->sp_securityquestion','$this->sp_answer')");
  5. }
  6.  
  7. public function changePassword() {
  8.  
  9. $this->username = $_SESSION['username'];
  10. $CI =& get_instance();
  11.  
  12. $CI->db->query("Update C_Users SET PASSWORD = '$this->updatedPassword' where Email ='$this->username'");
  13.  
  14. return true;
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement