SETTING UP THE BACKEND
Setting Up the Backend (PHP CodeIgniter)
Configure the Database in CodeIgniter
1. Open the following file in your project:
application/config/database.php
2. Update the database credentials:
$db['default'] = array(
'hostname' => 'localhost',
'username' => 'root', // Default username for XAMPP/WAMP
'password' => '', // Leave blank if no password
'database' => 'your_database_name',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => TRUE,
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'autoinit' => TRUE,
'stricton' => FALSE
);
'hostname' => 'localhost',
'username' => 'root', // Default username for XAMPP/WAMP
'password' => '', // Leave blank if no password
'database' => 'your_database_name',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => TRUE,
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'autoinit' => TRUE,
'stricton' => FALSE
);
3. Save the changes.