15 lines
429 B
PHP
15 lines
429 B
PHP
<?php
|
|
$db_link = mysqli_connect('141.19.142.11', 'web_b-3', 'een7Ao6s', 'bibliothek_candle');
|
|
|
|
if(!$db_link){
|
|
die("<p>Verbindung nicht hergestellt</p>");
|
|
}else{
|
|
echo "Verbindung hergestellt!";
|
|
}
|
|
|
|
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;
|
|
}
|
|
?>
|