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(); |
Adrià Vilanova Martínez | 6052433 | 2022-11-20 02:33:56 +0100 | [diff] [blame^] | 6 | $conn = new mysqli($credentials->servername(), $credentials->username(), $credentials->password(), $credentials->dbname()); |
Adrià Vilanova Martínez | 13cf0cd | 2022-11-20 01:02:20 +0100 | [diff] [blame] | 7 | |
| 8 | if ($conn->connect_error) die("Connection failed: " . $conn->connect_error); |
| 9 | $conn->set_charset("utf8"); |