Skip to content

Pei-wen-code/phpmessageboard

Repository files navigation

PHP message board

This is a message board website where users need to login to leave their message. Normal users can also edit and delete their own messages. Admin user has access to admin area where he or she can manage the permission of each user. For example, if users are assigned to the role "banned" by the admin, they will no longer have access to create new posts. When registering and logging, error messages will show for unable to match the username and password, imcomplete fields and when the username has been registered.

homepage

errorhandle

What does this project mean to me?

This project literally advance my knowledge regarding back-end. I gain increadibly a lot from this project. Not only did I learn PHP language and CRUD, but I also learned some bacis knowledge regarding cyber safety. For example, always store hashed password to database and veryfy the hashed password with the password provided by the users when they login. This project also taught me how to prevent XSS attack, using built-in htmlspecialchars method. The most interesting part wehn I was working on this project, is being a hacker try to hack into the database using SQL injection. Therefore, instead of using sprintf method, using prepare statement prevent this kind of attack. Not to mention that I also learned the concept of cookies, the stateless feature of HTTP as well as the use of session to make the server "memorise" who has visited here before. Lastly, this project allowed me to create pagination using limit and offset.

pagination

Releases

No releases published

Packages

No packages published