Javierkoo21

Untitled

Mar 2nd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <?php
  2. class Database
  3. {
  4. private $host;
  5. private $user;
  6. private $pass;
  7. private $db;
  8.  
  9. protected function connectDatabase()
  10. {
  11. $this->host = '185.91.116.73';
  12. $this->user = '4820_luk';
  13. $this->pass = ':)';
  14. $this->db = '4820_luk';
  15.  
  16. $mysqli = new mysqli($this->host, $this->user, $this->pass, $this->db) or die($mysqli->error);
  17.  
  18. return $mysqli;
  19. }
  20. }
  21. ?>
Add Comment
Please, Sign In to add comment