summaryrefslogtreecommitdiffstats
path: root/core/namespace/Database.php
blob: 54fb36bc451c505397cb42f9aa73eaea72bb2e66 (plain)
1
2
3
4
5
6
<?php
class Database extends \PDO {
	public function __construct($hostname, $basename, $username, $password) {
		parent::__construct("mysql:host={$hostname};dbname={$basename};charset=utf8mb4;", $username, $password);
	}
}