66
CodeIgniter SELECT Database record
To fetch all data from database, one more page in Model folder of CodeIgniter will be created. There will be some changes in controller’s and view’s files also.
Controller file (Baby_form.php) is shown below.
We have added a constructor to load the model page. Highlighted code is added to fetch the inserted record. And our view page is now baby_form_select.php
View file (baby_form_select.php) is shown below.