Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User {
- function User($id) {
- $query = mysql_query("SELECT * FROM users WHERE id = '".$id."'");
- $result = mysql_fetch_array($query);
- $this->id = $result['id'];
- $this->name = $result['name'];
- $this->level = $result['level'];
- $this->health = $result['health'];
- $this->money = $result['money'];
- $this->level = $result['level'];
- $this->xp = $result['xp'];
- $this->maxxp = $result['maxxp'];
- $this->maxhealth = $result['health'];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement