Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class dataBase{
- private $servername = "localhost";
- private $username = "root";
- private $password = "";
- private $dbname = "Ativ";
- private $conn;
- public function getConn(){
- return $this->conn;
- }
- public function createConn(){
- $this->conn = new mysqli($this->servername, $this->username, $this->password, $this->dbname);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement