A simple and efficient To-Do List web application built using PHP, HTML, CSS, JavaScript, Bootstrap, and MySQL. This application allows users to add, edit, delete, and update tasks with a user-friendly interface.
- Add new tasks 🆕
- Edit existing tasks ✏️
- Mark tasks as completed ✔️
- Delete tasks ❌
- Responsive design using Bootstrap 📱💻
- Frontend: HTML, CSS, Bootstrap, JavaScript, jQuery
- Backend: PHP, MySQL
- AJAX: For seamless updates
Follow these steps to set up the project locally:
git clone https://github.com/obadaKraishan/ToDoListPHP.git
cd to-do-list- Start your local server using XAMPP, WAMP, or MAMP.
- Open phpMyAdmin and create a new database named
todo_list. - Import the SQL file to set up the
taskstable:CREATE DATABASE todo_list; USE todo_list; CREATE TABLE tasks ( id INT AUTO_INCREMENT PRIMARY KEY, title VARCHAR(255) NOT NULL, status ENUM('pending', 'completed') DEFAULT 'pending', created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP );
Edit includes/db.php with your database connection details:
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "todo_list";
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
?>Open a web browser and navigate to http://localhost/to-do-list.
Modify the styles in assets/css/styles.css to match your design preferences.
Enhance the JavaScript functionality in assets/js/scripts.js to customize the interactivity.
Modify the HTML content in index.php to personalize the text and tasks.
This project is licensed under the MIT License - see the LICENSE file for details.