我有这个代码
$specific['hostname'] = "localhost";
$specific['username'] = "root";
$specific['password'] = "";
$specific['database'] = "ci_forsyria";
$specific['dbdriver'] = "mysql";
$specific['dbprefix'] = "";
$specific['pconnect'] = FALSE;
$specific['db_debug'] = FALSE;
$specific['cache_on'] = FALSE;
$specific['cachedir'] = "";
$specific['char_set'] = "utf8";
$specific['dbcollat'] = "utf8_general_ci";
$specific_db = $this->load->database($specific, TRUE);
我使用这个参数“FALSE”来隐藏连接错误!
$specific['db_debug'] = FALSE;
但是如果连接字段,我如何创建自定义错误消息
像
$connect = $this->db->connect; if(!$connect) { // 打印错误信息 .. }