SHARE
TWEET

Untitled

a guest Nov 14th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. class DB_Connect {
  3. private $conn;
  4.  
  5. // Connecting to database
  6. public function connect() {
  7.     require_once 'include/Config.php';
  8.  
  9.     // Connecting to mysql database
  10.     $this->conn = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE);
  11.  
  12.     // return database handler
  13.     return $this->conn;
  14.   }
  15. }
  16.  
  17. ?>
RAW Paste Data
Top