summaryrefslogtreecommitdiff
path: root/automated/linux/lamp/html/connect-db.php
blob: ee42caf7257d604ab6ff328571ee11e402132777 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
$servername = "localhost";
$username = "root";
$password = "lamptest";

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

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>