Guest User

Untitled

a guest
Feb 27th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2.  
  3. class Sql {
  4.  
  5. const HOSTNAME = "127.0.0.1";
  6. const USERNAME = "xxxxx";
  7. const PASSWORD = "xxxxx";
  8. const DBNAME = "xxxxxx";
  9.  
  10. private $conn;
  11.  
  12. public function __construct()
  13. {
  14.  
  15. $this->conn = new \PDO("mysql:dbname=".Sql::DBNAME. ";host=".Sql::HOSTNAME .";charset=UTF8",
  16. Sql::USERNAME,
  17. Sql::PASSWORD);
  18.  
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment