mirror of
https://github.com/JannikKoester/Tischverwaltung.git
synced 2026-01-08 05:54:20 +01:00
errorhandling hinzugefügt
This commit is contained in:
@@ -17,6 +17,14 @@ if (session_status() == PHP_SESSION_NONE) {
|
||||
}
|
||||
require 'settings.php';
|
||||
require 'modal.php';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
@@ -88,8 +88,8 @@ if(isset($_POST['dbConfigBtn']))
|
||||
$conn = new mysqli($servername, $username, $password,$db);
|
||||
// Check connection
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
header("location:install.php");
|
||||
}
|
||||
|
||||
?>';
|
||||
fwrite($settingsfile, $txt);
|
||||
|
||||
@@ -13,14 +13,5 @@
|
||||
<link rel="stylesheet" href="assets/css/styles.css">
|
||||
</head>
|
||||
|
||||
<div class="footer-dark">
|
||||
<footer>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
</div>
|
||||
<p class="copyright">Rene Knipschild © 2020</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<script src="assets/js/jquery.min.js"></script>
|
||||
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
|
||||
@@ -9,7 +9,7 @@
|
||||
$conn = new mysqli($servername, $username, $password,$db);
|
||||
// Check connection
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
header("location:install.php");
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user