Thursday, April 29, 2010

STEP 3-CodeIgniter comment system / shoutbox system tutorial/lesson.

STEP 3-
So we setup our database in step 2, now we will configure the database settings in CodeIgniter.
open the 'database.php' configuration file from system/application/config/ and all we have to edit is 4 lines-line number 40,41,42,43.
$db['default']['hostname'] = "localhost"; //mostly it is localhost so no need to change.
$db['default']['username'] = "root"; /*the username you set while creating your database. */
$db['default']['password'] = "root";//password you set for your database user.
$db['default']['database'] = "shoutbox";// the database name.
That's it. Your CodeIgniter database is now configured!

Head to Step 4...

Leave a comment for help !

3 comments: