<?php | |
require_once(dirname(__FILE__)."/../credentials.php"); | |
// Create connection | |
$credentials = new Credentials(); | |
$conn = new mysqli($credentials->servername, $credentials->username, $credentials->password, $credentials->dbname); | |
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error); | |
$conn->set_charset("utf8"); |