I just downloaded a fresh copy of CI from their site(version 3.0.3) and simply configured database and loaded it, but i am having error.
Below is my database configuration in config.php
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'shortagesdb',
'dbdriver' => 'mysql',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => TRUE,//(ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
and here is what i am doing in my controller i-e simply loading database
public function index()
{
$this->load->database();
$this->load->view('welcome_message');
}
Nothing fancy here and i am getting this exception no matter what
PHP Fatal error: Call to undefined function mysql_connect() in D:\Projects\ims\system\database\drivers\mysql\mysql_driver.php on line 136
Any help would be highly appreciated