帝国CMS_帝国CMS模板_帝国CMS插件_帝国CMS教程_帝国CMS二次开发_T姐帝国CMS团队

db_connect()

帝国CMSdb_connect()

function db_connect(){
	global $ecms_config;
	$dblink=do_dbconnect($ecms_config['db']['dbserver'],$ecms_config['db']['dbport'],$ecms_config['db']['dbusername'],$ecms_config['db']['dbpassword'],$ecms_config['db']['dbname']);
	return $dblink;
}
函数 db_connect()
功能 建立MSYQL数据库连接
位置 e/class/connect.php
版本 7.0
字数: 表情数:8

Cann't connect to DB!