1<?php
2 // This is for checking if your file is linked in your page or game or whatever
3 echo "IT WORKS"; // My File is successfuly Linked
4
5 //Remember to create a Database in phpmyadmin or any Online Database
6 // the values passed in this parameters are: the host, the user, user password and the database Name
7 $con = mysqli_connect('localhost', 'root', 'root', 'unityaccess');
8
9 // check that connection happen
10 if(mysqli_connect_errno()) {
11 echo "1: Connection Failed"; //error code #1 = connection Failed
12 exit();
13 }
14?>
15