Insert and List the data in codeigniter
Its a simple student entry form and listing of the entered students.You can follow the below steps to do this Step1: create a database named (studentdatabase) in the mysql using phpmyadmin. Below query u can execute through phpmyadmin
1 2 3 4 5 6 7 8 9 10 11 12 |
CREATE TABLE IF NOT EXISTS `tbl_student` ( `id` int(11) NOT NULL, `studentname` varchar(250) NOT NULL, `email` varchar(250) NOT NULL, `phone` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; ALTER TABLE `tbl_student` ADD PRIMARY KEY (`id`); ALTER TABLE `tbl_student` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
Step2: Configuration changes in different pages. In Application/config/routes.php $route[‘default_controller’] = “register”; default_controller will be a “welcome”… Read More »