[eluser]joeizang[/eluser]
ok guys sorry about the errors in copying the code. I hope it's worth mentioning that I used phpmyadmin to create the database but here is the schema and the database php files:
database.php:
<?php
$active_group = "default";
$active_record = TRUE;
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "root";
$db['default']['password'] = "root";
$db['default']['database'] = "tlc";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
?>
mysql schema:
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `tlc`
--
CREATE DATABASE `tlc` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `tlc`;
-- --------------------------------------------------------
--
-- Table structure for table `tlcusers`
--
CREATE TABLE IF NOT EXISTS `tlcusers` (
`user_id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(20) NOT NULL,
`password` varchar(100) NOT NULL,
PRIMARY KEY (`user_id`),
UNIQUE KEY `username` (`username`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `tlcusers`
--
INSERT INTO `tlcusers` (`user_id`, `username`, `password`) VALUES
(1, 'johndoe', 'aa91fc1ac0ebf2ca623f48e99ac2bb31f0675d72');
Hope this helps. sorry for all the trouble guys. thanks