CRUD operation in CodeIgniter | PHP Gurukul



 In previous tutorial we learned how to insert data into data in CodeIgniter. In this tutorial we will learn how to fetch data from database in CodeIgniter.

1.Create a model(Read_data_Model.php) inside application/mode

2.Create a controller(Read_data.php) inside application/controller

Click Here : https://phpgurukul.com/how-to-fetch-data-in-codeigniter/

3. Create a view (read_data.php)  inside application/view

View—————————————

 

How to run this script

  1. Download the zip file .
  2. Extract the zip and copy registrationci folder
  3. Paste in root directory(For xampp htdocs and for wamp www)
  4. Open your browser put http://localhost/phpmyadmin
  5. Create a database cidb
  6. Import sql file tblusers.sql
  7. Run your script http://localhost/registrationci

PHP Gurukul

Welcome to PHPGurukul. We are a web development team striving our best to provide you with an unusual experience with PHP. Some technologies never fade, and PHP is one of them. From the time it has been introduced, the demand for PHP Projects and PHP developers is growing since 1994. We are here to make your PHP journey more exciting and useful.

Website : https://phpgurukul.com

Comments

Popular posts from this blog

Pre-School Enrollment System using PHP and MySQL | PHP Gurukul

Global Food Ordering System Using PHP and MySQL | PHP Gurukul

Doctor Appointment Management System Using PHP and MySQL | PHP Gurukul