Javatpoint Logo
Javatpoint Logo

CodeIgniter Database INSERT record

In this example, we will INSERT different values in database showing meaning of Indian names through CodeIgniter.

In application/controller, file baby_form.php is created.

Look at the above snapshot, our table name is 'baby'.

This is our view page which is being loaded in the controller's page.

To run it on your browser, pass URL

http://localhost/insert/index.php/Baby_form/

Codeigniter Insert database record 3

By inserting various names in the above form we have created our table as shown below.

Codeigniter Insert database record 4



Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA