Skip to content
← Back

Movietopia

A PHP/MySQL application with CRUD-enabled database tables and session-based authentication.

Built with
PHP, MySQL, CSS
Features
Database, Accounts, Reviews, Search

Overview

Movietopia is a movie review site. You can register, log in, search and sort movies, and write, edit and delete your own star-rated reviews.

It was a graded assignment for my server-side programming module, built with PHP, MySQL and sessions, and run locally on XAMPP.

Under the interface

Problems and fixes

A deleted user's reviews had to go too.

Reviews reference users and movies through foreign keys with ON DELETE CASCADE.

Guests and members see different pages.

Every template checks the session, and one flag switches between the two views.

Edit and Delete should only work on your own reviews.

They only appear on rows where the review's user ID matches the one in your session.

If I picked it back up. Prepared statements and hashed passwords.

Next project:

Kiroku

Next.js, PostgreSQL — An anime tracker I rebuilt after its data API shut down, so a failing upstream costs a page seconds instead of a minute, and the watch list no longer calls the API once per show.