Adrià Vilanova MartÃnez | 13cf0cd | 2022-11-20 01:02:20 +0100 | [diff] [blame] | 1 | <?php |
2 | require_once(dirname(__FILE__)."/../credentials.php"); | ||||
3 | |||||
4 | // Create connection | ||||
5 | $credentials = new Credentials(); | ||||
6 | $conn = new mysqli($credentials->servername, $credentials->username, $credentials->password, $credentials->dbname); | ||||
7 | |||||
8 | if ($conn->connect_error) die("Connection failed: " . $conn->connect_error); | ||||
9 | $conn->set_charset("utf8"); |