aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'status.php')
-rw-r--r--status.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/status.php b/status.php
index 66d55f8..2a49fd8 100644
--- a/status.php
+++ b/status.php
@@ -9,8 +9,13 @@
die("No handle hash given\n");
}
- $db = new mysqli(MYSQL_HOSTNAME, MYSQL_USERNAME,
- MYSQL_PASSWORD, MYSQL_DATABASE);
+ $db = new mysqli(
+ MYSQL_HOSTNAME,
+ MYSQL_USERNAME,
+ MYSQL_PASSWORD,
+ MYSQL_DATABASE
+ );
+
if (mysqli_connect_errno()) {
die("Could not connect to database ".mysqli_connect_error());
}