Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'config.php';
- class DB_connection{
- private $connect;
- function __construct(){
- $this->connect = mysqli_connect (hostname,username,password,db_name ) or die (" DB connection error "));
- }
- public function get_connection()
- {
- return $this->connect;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement