diff options
Diffstat (limited to 'client.php')
-rw-r--r-- | client.php | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -21,8 +21,13 @@ echo "Job sent, handle was ".$handle." - hash ".$handlehash."\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()); } |