diff options
Diffstat (limited to 'status.php')
-rw-r--r-- | status.php | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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()); } |