Image Gallery Error

MySQL Error: The image gallery could not connect to the database server. Check your zp-config.php file for the correct host, user name, and password. Note that you may need to change the host from localhost if your web server uses a separate MySQL server, which is common in large shared hosting environments like Dreamhost and GoDaddy. Also make sure the server is running, if you control it.

Notice: Use of undefined constant DEBUG - assumed 'DEBUG' in E:\domains\l\lancashiredoubleglazing.co.uk\user\htdocs\gallery\p-gallery\functions.php on line 617

Backtrace:

   in db_connect (functions-db.php [69])
     in query (functions-db.php [116])
       in query_full_array (functions.php [78])
         in getOption (functions.php [36])
           in require_once (functions-db.php [5])
             in require_once (auth_zp.php [3])
               in require_once (classes.php [6])
                 in require_once (template-functions.php [10])
                   in require_once (index.php [8])