Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1.         public function showAll()
  2.         {
  3.             $query = mysql_query("SELECT `username`, `password` FROM `user` ORDER BY `id` DESC");
  4.            
  5.            
  6.             $arr = array();
  7.             while($result = mysql_fetch_assoc($query))
  8.             {
  9.                 $arr[] = $result;
  10.                 $this->username = $result['username'];
  11.                 $this->password = $result['password'];
  12.             }  
  13.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement