Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function setUsername($username)
- {
- if(!$this->isLoggedIn())
- return;
- $statement = '
- UPDATE
- `' . $this->sql->prefix . 'members`
- SET
- `username` = \''.$this->sql->escape($username).'\'
- WHERE
- `id` = \''.$this->info['id'].'\'
- ;';
- $this->sql->execute($statement);
- $this->loadInfo($this->info['id']);
- }
Add Comment
Please, Sign In to add comment