CODEIGNITER REPORT
1.First I downloaded CodeIgniter and put that folder to www folder2.Then went to phpMyAdmin at localhost and made a database named as book
3.Created a table and insert data to book database.
4. Then went to www folder -> CodeIgniter ->application->config->autoload and change the code (set $autoload['libraries'] = array() as $autoload['libraries'] = array('database')).
5. Then went to www folder -> CodeIgniter ->application->config->database and change the code (set user name password and database).
6.Wrote php codes for get data from database.
7.Saved that codes on www folder -> CodeIgniter ->application->controller folder , www folder -> CodeIgniter ->application->model folder and www folder -> CodeIgniter ->application->view folder
controller.php
view.php
8. Then loaded the browser and typed http://localhost/CodeIgniter_2.1.3/CodeIgniter_2.1.3/index.php/controller1 .I got data from database.
9.This is the out put
No comments:
Post a Comment