Advertisement
Guest User

Database.php

a guest
Nov 3rd, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. <?php
  2.  
  3. class Database{
  4.  
  5.     //keeping host and db_name values
  6.     //set the port
  7.     //setting up the connection to the db
  8.     function connect(){
  9.         $host = '127.0.0.1:8889';
  10.         $db_name = 'undrtd';
  11.         $password = 'root';
  12.         $username = 'root';
  13.         $this->connection = new mysqli($host, $username, $password, $db_name);
  14.     }
  15.  
  16. }
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement