-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtetrisconfig.php
40 lines (32 loc) · 1.19 KB
/
tetrisconfig.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/* $servername = "localhost";
$username = "root";
$password = "password";
// Create connection
$conn = mysqli_connect($localhost, $root, $password);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
} */
$con=mysqli_connect("localhost", "root", "") or die ("unable to connect");
mysqli_select_db($con, 'practice');
/* $con=mysqli_connect("localhost:8080", "root", "");
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
} */
/* $link = mysqli_connect("localhost:3306", "root", "", "samplelogin");
if (!$link) {
echo "Error: Unable to connect to MySQL." . PHP_EOL;
echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL;
echo "Debugging error: " . mysqli_connect_error() . PHP_EOL;
exit;
}
echo "Success: A proper connection to MySQL was made! The my_db database is great." . PHP_EOL;
echo "Host information: " . mysqli_get_host_info($link) . PHP_EOL;
mysqli_close($link); */
/* $connection = mysqli_connect("localhost","root","password","samplelogin");
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
} */
?>