Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('DB_HOST','localhost');
- define('DB_USER','root');
- define('DB_PASS','');
- define('DB_NAME','proweb');
- class Dbconfig {
- var $conn;
- function __construct() {
- $this->conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);
- if ($this->conn->connect_error) {
- echo $this->conn->connect_error;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement