|
发表于 2011-6-9 10:03:42
|
显示全部楼层
如下
$config ['hostname'] = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=x.x.x.x)(PORT=1522))(CONNECT_DATA=(SID=etrack)))';
$config ['username'] = $_POST ['em_user'];
$config ['password'] = $_POST ['em_pass'];
$config ['database'] = "xxx";
$config ['dbdriver'] = "oci8";
$config ['dbprefix'] = "";
$config ['pconnect'] = FALSE;
$config ['db_debug'] = TRUE;
$config ['cache_on'] = FALSE;
$config ['cachedir'] = "";
$config ['char_set'] = "utf8";
$config ['dbcollat'] = "utf8_general_ci";
if ($this->load->database ( $config )) { |
|