Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. if($this->$id !== 0)
  2.     {
  3.         $result = $this->db->query("SELECT `username`, `password` FROM `user` WHERE `id` = $this->id");
  4.                    
  5.     if($result)
  6.     {
  7.                        
  8.         $this->username = $result->username;
  9.         $this->password = $result->password;
  10.     }
  11.                    
  12.     $row = $this->db->fetch($result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement