├── README.md ├── add-new.php ├── db_conn.php ├── delete.php ├── edit.php └── index.php /README.md: -------------------------------------------------------------------------------- 1 | # PHP Complete CRUD Application 2 | 3 | ### ****Creating the Database Table**** 4 | 5 | Create a table named *crud* inside your MySQL database using the following code. 6 | 7 | ```sql 8 | CREATE TABLE `crud` ( 9 | `id` int(255) NOT NULL AUTO_INCREMENT, 10 | `first_name` varchar(255) NOT NULL, 11 | `last_name` varchar(255) NOT NULL, 12 | `email` varchar(255) NOT NULL, 13 | `gender` varchar(255) NOT NULL, 14 | PRIMARY KEY (`id`) 15 | ) 16 | ``` 17 | 18 | ### ****Copy files to htdocs folder**** 19 | 20 | Download the above files. Create a folder named *crud* inside *htdocs* folder in *xampp* directory. Finally, copy the *crud* folder inside *htdocs* folder. Now, visit [localhost/crud](http://localhost/crud) in your browser and you should see the application. 21 | -------------------------------------------------------------------------------- /add-new.php: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 |Complete the form below to add a new user
52 |Click update after changing any information
53 |ID | 43 |First Name | 44 |Last Name | 45 |Gender | 47 |Action | 48 ||
---|---|---|---|---|---|
58 | | 59 | | 60 | | 61 | | 62 | | 63 | " class="link-dark"> 64 | " class="link-dark"> 65 | | 66 |