How to insert data into table CodeIgniter?

CodeIgniter is a powerful PHP framework with a very small footprint, built for developers who need a simple and elegant toolkit to create full-featured web applications.
This snippet gives you the simple and best explanation to insert data into a MySQL table.
This process contains three major steps.
  1. View
  2. Controller
  3. Model
1. View 
demo.php (place it in your view folder)

mysql queries

2. Controller

Welcome.php(Place it in controller folder)

Which will act as a bridge between model and view.

3. Model

Levels.php(Place it in model folder)

Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *