blob: 5da1edeb6a9802a84a058ad71a5fc08acb2f9465 [file] [log] [blame]
Adrià Vilanova Martínez13cf0cd2022-11-20 01:02:20 +01001<?php
2require_once(dirname(__FILE__)."/../credentials.php");
3
4// Create connection
5$credentials = new Credentials();
Adrià Vilanova Martínez60524332022-11-20 02:33:56 +01006$conn = new mysqli($credentials->servername(), $credentials->username(), $credentials->password(), $credentials->dbname());
Adrià Vilanova Martínez13cf0cd2022-11-20 01:02:20 +01007
8if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
Adrià Vilanova Martínez064c86f2022-12-11 18:43:39 +01009$conn->set_charset("utf8mb4");