Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // When I now do $hDB = new DBC();, it will automatically
- // create a new handle to the database using my own MySQL class.
- // after that, all I need to do is $hDB->connect(); and I can start xD
- class DBC extends MySQL{
- const HOST = "host";
- const USER = "username";
- const PASS = "password";
- const NAME = "database-name";
- public function __construct(){parent::__construct(self::HOST,self::USER,self::PASS,self::NAME);}
- }
- ?>
Add Comment
Please, Sign In to add comment