database->driver)) { if(empty($cphp_config->database->database)) { die("No database was configured. Refer to the CPHP manual for instructions."); } if(mysql_connect($cphp_config->database->hostname, $cphp_config->database->username, $cphp_config->database->password)) { if(mysql_select_db($cphp_config->database->database)) { $cphp_mysql_connected = true; } else { die("Could not connect to the specified database. Refer to the CPHP manual for instructions."); } } else { die("Could not connect to the specified database server. Refer to the CPHP manual for instructions."); } }