Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Sql {
- const HOSTNAME = "127.0.0.1";
- const USERNAME = "xxxxx";
- const PASSWORD = "xxxxx";
- const DBNAME = "xxxxxx";
- private $conn;
- public function __construct()
- {
- $this->conn = new \PDO("mysql:dbname=".Sql::DBNAME. ";host=".Sql::HOSTNAME .";charset=UTF8",
- Sql::USERNAME,
- Sql::PASSWORD);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment