{"id":18952842,"url":"https://github.com/sujon-ahmed/php-todo-list","last_synced_at":"2026-03-29T13:30:20.805Z","repository":{"id":109467667,"uuid":"447684148","full_name":"Sujon-Ahmed/PHP-TODO-LIST","owner":"Sujon-Ahmed","description":"Creating a Simple To Do List App in PHP","archived":false,"fork":false,"pushed_at":"2022-01-19T08:18:54.000Z","size":158,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T02:41:52.256Z","etag":null,"topics":["bootstrap","mysqli","mysqli-database","php","todolist","todolist-application"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sujon-Ahmed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-13T17:07:46.000Z","updated_at":"2022-06-15T06:42:19.000Z","dependencies_parsed_at":"2023-05-17T23:30:38.361Z","dependency_job_id":null,"html_url":"https://github.com/Sujon-Ahmed/PHP-TODO-LIST","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sujon-Ahmed%2FPHP-TODO-LIST","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sujon-Ahmed%2FPHP-TODO-LIST/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sujon-Ahmed%2FPHP-TODO-LIST/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sujon-Ahmed%2FPHP-TODO-LIST/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sujon-Ahmed","download_url":"https://codeload.github.com/Sujon-Ahmed/PHP-TODO-LIST/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239952598,"owners_count":19723922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","mysqli","mysqli-database","php","todolist","todolist-application"],"created_at":"2024-11-08T13:34:46.066Z","updated_at":"2026-03-29T13:30:20.754Z","avatar_url":"https://github.com/Sujon-Ahmed.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Creating a Simple To Do List App in PHP\n![](images/Screenshot.png)\n\n\u003cb\u003eBody\u003c/b\u003e\n\nIn this repository we will create a \u003cb\u003eSimple To-Do List App\u003c/b\u003e using \u003cb\u003ePHP\u003c/b\u003e. \u003cb\u003ePHP\u003c/b\u003e is a server-side scripting language designed primarily for web development. Using PHP, you can let your user directly interact with the script and easily to learned its syntax. It is mostly used by newly coders for its user-friendly environment.\n\n### So Let's do the coding...\n## Getting started:\n\nFirst you have to download \u0026 install XAMPP or any local server that run PHP scripts. Here's the link for XAMPP server \u003ca target=\"_blank\" href=\"https://www.apachefriends.org/index.html\"\u003ehttps://www.apachefriends.org/index.html\u003c/a\u003e.\n\nAnd this is the link for the bootstrap that has been used for the layout \u003ca target=\"_blank\" href=\"https://getbootstrap.com/\"\u003ehttps://getbootstrap.com/\u003c/a\u003e.\n\n## Creating Database\n\nOpen your database web server then create a database name in it \u003ccode\u003edb_task\u003c/code\u003e. After that, click \u003ccode\u003eImport\u003c/code\u003e then locate the database file inside the folder of the application then click ok.\n\n\n![](images/localhost.png)\n\n## Creating the Database Connection\nOpen your any kind of text editor(notepadd++, etc..). Then just \u003cb\u003ecopy/paste\u003c/b\u003e the code below then name it \u003cb\u003econn.php\u003c/b\u003e.\n\n\n\n\u003cpre\u003e\n\u003ccode\u003e\n$conn = new mysqli(\"localhost\", \"root\", \"\", \"db_task\");\n\nif(!$conn){\n    die(\"Error: Cannot connect to the database\");\n}\n\u003c/code\u003e\n\u003c/pre\u003e\n\n\u003cb\u003eNote: Start PHP Opening and Closing tag\u003c/b\u003e\n\n## Creating The Interface\n\nThis is where we will create a simple form for our application. To create the forms simply \u003cb\u003ecopy\u003c/b\u003e and \u003cb\u003epaste\u003c/b\u003e it into you text editor, then save it as shown below.\n\n\u003ca target=\"_blank\" href=\"https://github.com/Sujon-Ahmed/PHP-TODO-LIST/blob/main/index.php\"\u003eIndex Page\u003c/a\u003e\n\n\u003cb\u003eadd_query.php\u003c/b\u003e\n\u003cpre\u003e\n\u003ccode\u003e\nrequire_once 'conn.php';\nif(isset($_POST['add'])){\nif($_POST['task'] != \"\"){\n    $task = $_POST['task'];\n\n    $conn-\u003equery(\"INSERT INTO `task` (`task`)VALUES('$task')\");\n    header('location:index.php');\n}\n}\n\u003c/code\u003e\n\u003c/pre\u003e\n\n\u003cb\u003eupdate_task.php\u003c/b\u003e\n\u003cpre\u003e\n\u003ccode\u003e\nrequire_once 'conn.php';\nif($_GET['task_id'] != \"\"){\n    $task_id = $_GET['task_id'];\n\n    $conn-\u003equery(\"UPDATE `task` SET `status` = 'Done' WHERE `task_id` = $task_id\") or die(mysqli_errno($conn));\n    header('location: index.php');\n}\n\u003c/code\u003e\n\u003c/pre\u003e\n\n\u003cb\u003edelete_query.php\u003c/b\u003e\n\u003cpre\u003e\n\u003ccode\u003e\nrequire_once 'conn.php';\nif($_GET['task_id']){\n    $task_id = $_GET['task_id'];\n\n    $conn-\u003equery(\"DELETE FROM `task` WHERE `task_id` = $task_id\") or die(mysqli_errno($conn));\n    header(\"location: index.php\");\n}\t\n\u003c/code\u003e\n\u003c/pre\u003e\n\n\nThere you have it we successfully created a Simple To-Do List \u003cb\u003eApp\u003c/b\u003e using \u003cb\u003ePHP\u003c/b\u003e. I hope that this simple project helps you to what you are looking for. For more updates and projects just kindly visit my profile. \n\u003ca target=\"_blank\" href=\"https://github.com/Sujon-Ahmed\"\u003eSujon-Ahmed\u003c/a\u003e\n\n\u003cb\u003eEnjoy Coding!!!\u003c/b\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujon-ahmed%2Fphp-todo-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsujon-ahmed%2Fphp-todo-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujon-ahmed%2Fphp-todo-list/lists"}