Codeigniter display data from database - phptpoint

Codeigniter display data from database

PHP Summer Training/Internship with 2 Live Projects in Noida Fee is only 5500/-Click here to Book Your Seat.

/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

Latest Trending Technologies