Posts

Showing posts from September, 2021

HOW TO EXPORT THE CSV FILE BETWEEN TWO DATE IN CODEIGNITER 4

Image
CodeIgniter is an Application Development Framework - a toolkit - for people who build web sites using PHP.  Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. CodeIgniter lets you creatively focus on your project by minimizing the amount of code needed for a given task. CSV file is been used for data import, export, and generating a report between two date. If you have huge data available in the MySQL database and you only require a specific date range data but the file contains all records and you need it on your own. In this tutorial, I show how you can export MySQL database data in CSV format by date range with PHP. I am using jQuery UI for datepicker. In Controller  //Getting the vlaue from View Page using Post  $from_date = $this->request->getPost('from_date'