PHP – Make a simple To Do list with PHP

Some two days ago I have decided that it would be more fun if I try to make a simple PHP todo list, while trying to learn the language. 🙂

After all, I have made this exercise with JS (no link here) and Python already. Thus, with PHP it should have been a piece of cake. 🙂 Well it was not that easy, considering the fact that it took me about 3-4 hours to make a running application, but at the end I have considered it a valuable one to upload in GitHub and to use for later references for phpMyAdmin, cookies and sql commands.

Let’s start from the beginning. What have I done? Here are the screenshots:


todo_1 todo_2 todo_3 todo_4 todo_5


Long story short, you register, you login you see the list. Then you choose to delete something or to add something to the list. And that’s all, we have a transaction going to the database, that updates it.

Furthermore, if you have logged in successfully, you may access the todo/list.php automatically, because you have your cookies remembered in the browser.

That’s all.

The code is available only in GitHub, because in this “project” I have about 5-6 files, and it would be definitely not beautiful to post it here. I also add the database, so you may try to mimic my actions. As far as I am adding the database as well, I have considered that it is not needed to implement any level of security, like protection from SQL injections or hashing a password.

Enjoy it! 🙂

About

VBA Developer

Tagged with: , ,