Codeigniter display data from database - phptpoint

Codeigniter display data from database

Best PHP Training with Live Project in Noida Fee is only 7500/-Click here for FREE DEMO.

/ins>

Codeigniter display data from database

In this tutorial, we will understand how to display(fetch) data from database and display records in view.
In the Previous example we saved records inside users table.
In this example We will use users table to display records.

Controller

Copy the below given code in your controllers.

 

View

Copy the below given code in your view.

 

Model

Copy the below given code in your model.

Calling/run Hello Controller’s dispdata method

Open your web browser and Pass : http://localhost/CodeIgniter/index.php/Hello/dispdata

Output

Keep Updating yourself