I'd look at a session-based login for this project. Store their username as the primary key in the database, then, when they login, check the details. If it's matched OK, start a session, and store their username as a session variable.
i.e.
session_start()
$_SESSION['username'] = $user_name_from_db;
Every page that requires a login just needs to check for the existence of the session variable, if not, it redirects them to login.
i.e.
session_start()
if(isset($_SESSION['username'])){
// user logged-in, proceed
} else {
// user not logged-in, redirect
}