Warning: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /data/httpd/htdocs/promo.tvb.com/amazingsummer/libraries/database.class.php on line 15 Warning: PDO::__construct(): [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known (trying to connect via tcp://db1.api.hk1:3306) in /data/httpd/htdocs/promo.tvb.com/amazingsummer/libraries/database.class.php on line 15 Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known' in /data/httpd/htdocs/promo.tvb.com/amazingsummer/libraries/database.class.php:15 Stack trace: #0 /data/httpd/htdocs/promo.tvb.com/amazingsummer/libraries/database.class.php(15): PDO->__construct('mysql:host=db1....', 'tvb_amazingpriz...', '5t1cke184', Array) #1 /data/httpd/htdocs/promo.tvb.com/amazingsummer/core/loader.php(28): Database->__construct('db1.api.hk1', 'tvb_amazingpriz...', '5t1cke184', 'tvb_amazingpriz...') #2 /data/httpd/htdocs/promo.tvb.com/amazingsummer/models/luckdraw_model.php(16): Loader->db() #3 /data/httpd/htdocs/promo.tvb.com/amazingsummer/core/loader.php(42): Luckdraw_model->__construct() #4 /data/httpd/htdocs/promo.tvb.com/amazingsummer/controllers/luckdraw2.php(11): Loader->model('luckdraw_model') #5 /data/httpd/htdocs/promo.tvb.com/amazingsummer/index.php(136): Luckdraw2->__construct() #6 {main} thrown in /data/httpd/htdocs/promo.tvb.com/amazingsummer/libraries/database.class.php on line 15