Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class dbClient
- {
- private $host;
- private $serverName;
- private $username;
- private $password;
- private $database;
- function __construct($host, $username, $password, $database) {
- echo('Creating a new database client.');
- $this->host = $host;
- $this->username = $username;
- $this->password = $password;
- $this->database = $database;
- }
- public function connect(){
- $this->db = mysqli_connect($this->host, $this->username, $this->password, $this->database);
- return $this->db;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement