Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class core extends user {
- var $db;
- public function core () {
- $this->db = new database();
- }
- }
- class module1 extends core {
- public function module1 () {
- $q = "SELECT * FROM user";
- $r = $this->db->getAll($q);
- echo '<pre>';
- print_r($r);
- echo '</pre>';
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement