我在一个项目中有两个数据库。我正在尝试连接第二个数据库以生成一个查询,但它在我的控制台上抛出错误。请帮我解决这个问题
下面我使用的模型代码
//---------connecting with 2nd db--------------------------------------------
public function fetch_all_approved_template_list($limit,$start)
{
$dsn = 'mysql://fitappweb:fitappweb@localhost/fitneapp_webapp';
$dsnDB = $this->load->database($dsn, TRUE);
$dsnDB->limit($limit, $start);
$query = $dsnDB->order_by('routine_id', 'DESC')->join('userdetails', 'userdetails.user_id = template_routines.creater_id')->get_where('template_routines',array('status_code'=>'1'));
$data=array();
if ($query->num_rows() > 0)
{
foreach ($query->result() as $row) {
$data[] = $row;
}
return $data;
}
return false;
}
浏览器窗口上的错误
警告:include(application/errors/error_php.php): failed to open stream: No such file or directory in D:\xampp\htdocs\system\core\Exceptions.php on line 182
警告:include():在 D:\xampp\htdocs\system\core\Exceptions.php 中打开 'application/errors/error_php.php' 以包含 (include_path='.;D:\xampp\php\PEAR') 失败在第 182 行
警告:include(application/errors/error_php.php): failed to open stream: No such file or directory in D:\xampp\htdocs\system\core\Exceptions.php on line 182
警告:include():在 D:\xampp\htdocs\system\core\Exceptions.php 中打开 'application/errors/error_php.php' 以包含 (include_path='.;D:\xampp\php\PEAR') 失败在第 182 行
警告:include(application/errors/error_php.php): failed to open stream: No such file or directory in D:\xampp\htdocs\system\core\Exceptions.php on line 182
警告:include():在 D:\xampp\htdocs\system\core\Exceptions.php 中打开 'application/errors/error_php.php' 以包含 (include_path='.;D:\xampp\php\PEAR') 失败在第 182 行
警告:include(application/errors/error_php.php): failed to open stream: No such file or directory in D:\xampp\htdocs\system\core\Exceptions.php on line 182
警告:include():在 D:\xampp\htdocs\system\core\Exceptions.php 中打开 'application/errors/error_php.php' 以包含 (include_path='.;D:\xampp\php\PEAR') 失败在第 182 行
警告:include(application/errors/error_php.php): failed to open stream: No such file or directory in D:\xampp\htdocs\system\core\Exceptions.php on line 182
警告:include():在 D:\xampp\htdocs\system\core\Exceptions.php 中打开 'application/errors/error_php.php' 以包含 (include_path='.;D:\xampp\php\PEAR') 失败在第 182 行
警告:include(application/errors/error_php.php): failed to open stream: No such file or directory in D:\xampp\htdocs\system\core\Exceptions.php on line 182
警告:include():在 D:\xampp\htdocs\system\core\Exceptions.php 中打开 'application/errors/error_php.php' 以包含 (include_path='.;D:\xampp\php\PEAR') 失败在第 182 行
警告:include(application/errors/error_php.php): failed to open stream: No such file or directory in D:\xampp\htdocs\system\core\Exceptions.php on line 182
警告:include():在 D:\xampp\htdocs\system\core\Exceptions.php 中打开 'application/errors/error_php.php' 以包含 (include_path='.;D:\xampp\php\PEAR') 失败在第 182 行