Category: PHP
PHP – Hypertext Preprocessor
Codeigniter 4 Frontend and Backend In this tutorial I am going to give you an idea how to build frontend and backend functionalities separately so that the future maintenance would be easier. Frontend generally accessed by the end users of the websites whereas, backend is used by mainly admin users who manage different functionalities of…
Codeigniter 4 CRUD In this tutorial I am going to show how to build CRUD (Create Read Update Delete) application using Codeigniter 4 and MySQL database using basic AJAX (Asynchronous JavaScript and XML) technique. I won’t use AJAX technique for all four operations, i.e., fetching (Read), saving (Create), updating and deleting. Out of these four…
Table of Contents Introduction Prerequisites Project Directory MySQL Table Database Configuration Route Configuration Model Controller Library Testing CodeIgniter 4 REST JWT Source Code Introduction In this example I will show you how to use JWT (JSON Web Token) in CodeIgniter 4 REST API for authenticating/authorizing a user when he/she is trying to access REST API….
Table of Contents Introduction Why do you need to pretty print JSON data? Prerequisites Pretty Print JSON Source Code Introduction Here in this example I am going to show you how to pretty print JSON in PHP program. I will use three different kind of JSON inputs to prettify them in the output. I am…
Multiple Rows Deletion Here I am going to build an example on how to select multiple rows from HTML table and delete these multiple selected table rows from MySQL database using CodeIgniter 4 with the help of AJAX technique in jQuery. In this tutorial I am going to fetch all records from the MySQL database…
Introduction In this example I am going to discuss how to create custom helper functions in CodeIgniter 4. Helpers in CodeIgniter helps you with tasks. Each helper file is simply a collection of functions in a particular category. There are URL Helpers, that assist in creating links, there are Form Helpers that help you create…
Introduction This tutorial is about CodeIgniter 4 MySQL Login Logout example with MySQL database version 8. I will use CodeIgniter’s session library to store logged in user’s data. The session data get destroyed as soon as user logs out of the application. I am also going to create a custom config to use a key…