Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class DB_Connect {
- private $conn;
- // Connecting to database
- public function connect() {
- require_once 'include/Config.php';
- // Connecting to mysql database
- $this->conn = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE);
- // return database handler
- return $this->conn;
- }
- }
- ?>
Add Comment
Please, Sign In to add comment