Tag Archives: codeigniter error

why this error:In order to use the Session class you are required to set an encryption key in your config file.

This error is showing becuase of encryptionkey missing in the config.php please add the below value for this $config[‘encryption_key’] = ‘safdafdsafdsafdsa323432432’; Answer: In order to use the Session class you are required to set an encryption key in your config file.

Why this error in codeigniter :A Database Error Occurred Unable to select the specified database:

A Database Error Occurred Unable to select the specified database: Filename: ..system\database\DB_driver.php An Error Was Encountered Answer: Ususally this error is showing becuase of configuration table.please check the database.php inside the config folder.edit the mysql credentials.