first real comit
This commit is contained in:
16
app/connect.php
Normal file
16
app/connect.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
$servername = "db";
|
||||
$username = "root";
|
||||
$password = "example";
|
||||
$db="frise";
|
||||
|
||||
// Create connection
|
||||
$sql = new mysqli($servername, $username, $password);
|
||||
|
||||
// Check connection
|
||||
if ($sql->connect_error) {
|
||||
die("Connection failed: " . $sql->connect_error);
|
||||
}
|
||||
$sql->select_db($db);
|
||||
echo "Connected successfully";
|
||||
?>
|
||||
Reference in New Issue
Block a user