Guest User

Untitled

a guest
Jun 24th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public function setUsername($username)
  2. {
  3. if(!$this->isLoggedIn())
  4. return;
  5.  
  6. $statement = '
  7. UPDATE
  8. `' . $this->sql->prefix . 'members`
  9. SET
  10. `username` = \''.$this->sql->escape($username).'\'
  11. WHERE
  12. `id` = \''.$this->info['id'].'\'
  13. ;';
  14.  
  15. $this->sql->execute($statement);
  16. $this->loadInfo($this->info['id']);
  17. }
Add Comment
Please, Sign In to add comment