blob: 1291b1003b3d513f46b95a2f4bf79f36a5e28f83 [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);
9$conn->set_charset("utf8");