menu

Codeigniter Connect Database


Codeigniter Connect Database : You can connect to database in codeigniter as below.


Steps : Codeigniter Connect Database

Go to the application/config/databse.php

Step 1

Go to the below lines:

Add the above required parameter –

Hostname, Database Username and Password, Database name and other options if you need.

Step 2

Go to application/config/autoload.php
Go on the line :

Now Add