I will help you how to connect database in CODEIGNITER Framework. If you are using CODEIGNITER framework for your web server, so at first you need to connect database in your web server.
To connect Database name in you CODEIGNITER project folder, so follow the steps.
First open your project and go to the application folder and open it. Choose the config folder and open it. Now choose the database.php file and open it a text editor and now go to page down and give database details.
Codeigniter – application – config –database.php
I will show you a local example code. If your project in local server, so follow this code and when you upload you project in online then replace Database details.
$db['default'] = array( 'dsn' => '', 'hostname' => 'localhost', 'username' => 'root', 'password' => '', 'database' => 'mysql_db_name', 'dbdriver' => 'mysqli', 'dbprefix' => '', 'failover' => array(), 'save_queries' => TRUE );
If you want to show video tutorial watch this link: https://www.youtube.com/watch?v=nA7nlynZNJ4