Author: ShairyPortfolio
-

PHP REST API CRUD – Step 12
Step 12 Create API for delete data Create a new file called delete_user.php in user folder and Following steps to be performed for this We need to set headers on this new file. 2. Connect to database and register table 3. Assign submitted data to object properties 4. Use the delete method
-

PHP REST API CRUD – Step 11
Step 11 Delete Data Last, but not the least we will delete the user data. For this we will add delete functions in user.php of object folder.
-

PHP REST API CRUD – Step 10
Step 10 Create API for update data Create a new file called update_user.php in user folder and Following steps to be performed for this We need to set headers on this new file. 2. Connect to database and register table 3. Assign submitted data to object properties 4. Use the update method
-
PHP REST API CRUD – Step 9
Step 9 Update Data After view/read user, now we update the user data. For this we will add update functions in user.php of object folder