<!-- Author  Raivis Rampāns
Created 28.02.2024
Editor Raivis
Modified 28.02.2024 -->

<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "animelist";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);

// Check connection
if ($conn->connect_error) {
  die("Connection failed: " . $conn->connect_error);
}
//$sql = "SELECT * FROM anime";
//$result = $conn->query($sql);

//if ($result->num_rows > 0) {
//  // output data of each row
//  while($row = $result->fetch_assoc()) {
//    echo "title: ".$row["title"] ;
//  }
//  echo "0 results";
//} else {//
//  $conn->close();
//}
?>