Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. <?php
  2.  
  3. class core extends user {
  4.  
  5.     var $db;
  6.  
  7.     public function core () {
  8.        
  9.         $this->db = new database();
  10.  
  11.     }
  12. }
  13.  
  14. class module1 extends core {
  15.  
  16.     public function module1 () {
  17.        
  18.         $q = "SELECT * FROM user";
  19.         $r = $this->db->getAll($q);
  20.  
  21.         echo '<pre>';
  22.         print_r($r);
  23.         echo '</pre>';
  24.  
  25.     }
  26.  
  27. }
  28.  
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement