Skip to main content

Posts

Showing posts with the label CRUD

PHP CRUD Operations without Page Refresh using jQuery Ajax MySQL

CRUD stands for Create, Read, Update and Delete database records. Add, Edit, Update, and Delete functionality is used almost every web project in PHP. You’ve done it many times, but today we’ll show you the more user-friendly way to implement CRUD functionality in PHP . Here we’ll implement PHP CRUD operations without page refresh using jQuery, Ajax, and MySQL. The functionality of the example script would be read, add, update, and delete the records from MySQL database. In this example script, we’ll fetch the users data from the database and display the user data list with add link, edit link, and delete link. By these links user can add new data to the database, update previously inserted data and delete the data from the database. All operations will happen on a single page without page refresh. Also, bootstrap table structure will be used for styling the list, form fields, and links. Let’s start the step-by-step guide on creating a CRUD application with PHP using jQuery Ajax MySQL...

PHP OOP CRUD Operations using PDO Extension and MySQL

In the earlier article, we’ve already published PHP CRUD functionality tutorial using Ajax . There we’ve using MySQLi to connect database and database-related operations. After publishing that article we received many requests from our readers for PHP CRUD tutorial with PDO extension and MySQL . They also mentioned that they are waiting for our tutorial because complete and clear PHP MySQL PDO tutorial was not found after huge searching. Waiting is over! Here we’ll show the view, add, edit, update, and delete operations using PDO in PHP. The PHP Data Objects (PDO) extension defines a consistent, lightweight interface for accessing databases in PHP. PDO extension provides a data-access abstraction layer, which means that you can use different databases using the same functions to queries and fetch data from the database. In this PHP PDO tutorial, through implementing the simple PHP CRUD operation you’ll learn PDO connection, PDO insert, PDO select, PDO update, PDO delete query managemen...

PHP CRUD Operations with MySQLi Extension

CRUD stands for Create, Read, Update and Delete. CRUD operations are commonly used to manipulate data in the database. Almost, all web application used Add, Edit, Update and Delete functionality for managing data. In this tutorial, we will create a simple PHP CRUD application with MySQL to perform create (insert), read (select), update, and delete operations. The MySQLi Extension (MySQL Improved) and Object Oriented Programming (OOP) technique will be used to implement CRUD functionality in PHP. For the demonstration purpose, we will show you the CRUD operations to view, add, edit, and delete user data in PHP using MySQL. The following functionalities will be integrated into PHP CRUD application. Fetch and display user’s data from the MySQL database. Add user data to the MySQL database. Edit and update user data. Delete user data from the MySQL database. Create Database Table To store the user’s information a table needs to be created in the MySQL database. The following SQL creates...