After creating form in CodeIgniter framework one must learn to insert data into a database. Following steps explains you, how this operation can be done in easy way:-
- you must create connections with databases using autoloard.php and databases.php in config folder
- you must create a PHP page in View directory of CodeIgniter, in which a form is created using CodeIgniter’s syntax.
- Second, you have to create class in Controller directory, in which the above PHP page(view) is loaded, applying validation over form fields and respective model is loaded.
- Third, for database connectivity in your application, a class is created in Model directory with database insert function.
You can also refer our live demo or download the Script file. Extract the downloaded files, save it in your local server and run it using path :
creating autoloard.php
creating databases.php
to read views in moive_view.php this moive_view.php interact with users
and last thin connect with database using site_model.php in model part
create database file
Thank You





