[eluser]Sandy_s[/eluser]
Thanks for the reply. But I was meant to the MSSQL, rather than mysql.
My Database.php configurations as follows:
$active_group = "default";
$active_record = TRUE;
$db['default']['hostname'] = "FD109";
$db['default']['username'] = "sa";
$db['default']['password'] = "123456";
$db['default']['database'] = "mydb";
$db['default']['dbdriver'] = "mssql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
?>
And controller configurations as follows:
<?php
class Application extends Controller {
function Application()
{
parent::Controller();
}
function index()
{
$data['query'] = $this->db->get('dbo.owner');
$this->load->view('welcome_message',$data);
}
}
?>
Returned error:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Application: $db
Filename: controllers/application.php
Line Number: 11
Any suggestion?