2023-05-26 16:39:10 +02:00
|
|
|
<?php
|
2023-05-28 16:13:02 +02:00
|
|
|
$db_link = mysqli_connect('localhost', 'web_b-3', 'een7Ao6s', 'bibliothek_candle', '3306');
|
2023-05-31 16:03:16 +02:00
|
|
|
if(!$db_link){
|
|
|
|
die("<p>Verbindung nicht hergestellt</p>");
|
|
|
|
}else{
|
|
|
|
echo("<p>Verbindung wurde hergestellt</p>");
|
|
|
|
}
|
2023-05-28 16:13:02 +02:00
|
|
|
function runSQL($sql){
|
|
|
|
global $db_link;
|
|
|
|
$db_res = mysqli_query($db_link, $sql) or die("SQL_Abfrage: " . $sql . "Fehler: " . mysqli_error($db_link));
|
|
|
|
return $db_res;
|
|
|
|
}
|
2023-05-30 13:54:44 +02:00
|
|
|
|
|
|
|
|
2023-05-26 16:39:10 +02:00
|
|
|
?>
|