Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Database{
- //keeping host and db_name values
- //set the port
- //setting up the connection to the db
- function connect(){
- $host = '127.0.0.1:8889';
- $db_name = 'undrtd';
- $password = 'root';
- $username = 'root';
- $this->connection = new mysqli($host, $username, $password, $db_name);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement