17 lines
440 B
PHP
17 lines
440 B
PHP
<?php
|
|
|
|
$servername = "141.19.142.11";
|
|
$username = "web_b-3";
|
|
$password = "een7Ao6s";
|
|
$database = "bibliothek_candle";
|
|
|
|
try {
|
|
$conn = new PDO("mysql:host=$servername;dbname=$database", $username, $password);
|
|
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
|
echo "Connected successfully";
|
|
} catch(PDOException $e) {
|
|
echo "Connection failed: " . $e->getMessage();
|
|
}
|
|
|
|
|
|
?>
|