Category: PHP MySQL

PHP REST API CRUD – Step 14

Step 14 Login User with JWT create new file core. php in config folderCreate login function in user.php //Login Student public function readLogin($email, $password) { $query = "Select * from " . $this->table . " where...
READ MORE   >>

PHP REST API CRUD – Step 13

Step 13 Register User with JWT Create a new file called register.php in user folderDownload composer using command in api folder: composer require firebase/php-jwtcreate new file core. php in config folderCopy all the code of step5- Create API...
READ MORE   >>

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...
READ MORE   >>

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. // Delete User public function delete($id) { $query = "delete from " ....
READ MORE   >>

Recent Comments

    • Copyright © 2020 (Er. Shairy Kalra). All Rights Reserved