以下錯誤怎麼解決?

浏览:517 发布日期:2013/07/29 分类:求助交流
[8] Undefined index: db_dsn D:\xampp\htdocs\ThinkPHP\Lib\Core\Db.class.php 第 129 行.
[8] Undefined index: db_params D:\xampp\htdocs\ThinkPHP\Lib\Core\Db.class.php 第 130 行.
[8] Undefined index: db_dsn D:\xampp\htdocs\ThinkPHP\Lib\Core\Db.class.php 第 129 行.
[8] Undefined index: db_params D:\xampp\htdocs\ThinkPHP\Lib\Core\Db.class.php 第 130 行.


我的設定如下
'DB_CONFIG1'=> array('DB_TYPE' => 'oracle',
'DB_HOST' => '172.16.4.13',
'DB_NAME' => 'VIS',
'DB_USER' => 'apps',
'DB_PWD' => 'kbgroup',
'DB_PORT' => '1523',
'DB_PREFIX'=> 'think_'
),
'DB_CONFIG2'=> array('DB_TYPE' => 'mysql',
'DB_HOST' => '172.16.9.15',
'DB_NAME' => 'think',
'DB_USER' => 'root',
'DB_PWD' =>'',
'DB_PORT' => '3306',
'DB_PREFIX'=> 'think_'
),

執行語句如下
$data1 = $Data->db(2,"DB_CONFIG2")->query('select * from think_data');
$data = $Data->db(1,"DB_CONFIG1")->query('select * from think_data');
最佳答案
评论( 相关
后面还有条评论,点击查看>>