This is a simple CRUD (Create, Read, Update, Delete) application built with PHP and HTMX.
-
index.php
- Displays a list of records from thecontacts
table and forms to add/update records. Uses HTMX for AJAX requests. -
create.php
- Handles creating new records in thecontacts
table. -
read.php
- Displays details of a single record. -
update.php
- Handles updating an existing record. -
delete.php
- Handles deleting a record. -
conn.php
- Database connection details.
- Create, read, update and delete contacts
- Modals for adding, editing and viewing contacts
- Real-time updates using HTMX
- Tailwind CSS for styling
- Import the
contacts.sql
table into a MySQL database - Update the database credentials in
conn.php
- Start PHP server and access
index.php
- PHP 7.4+
- MySQL
- HTMX
- Tailwind CSS
This project is open source and available under the MIT License.