Don't Repeat Yourself.
You've got the same HTML all over the place. This breaks down annoyingly fast when you need to make changes. Your header, footer, and all that boilerplate needs to be in their own respective single files, then use include, include_once, require, or require_once on all your pages to inject those same views where you need it.
You'll also find the magic constant __DIR__ useful for including files in relative directory structures.
Don't Repeat Yourself.
You've got the same HTML all over the place. This breaks down annoyingly fast when you need to make changes. Your header, footer, and all that boilerplate needs to be in their own respective single files, then use
include,include_once,require, orrequire_onceon all your pages to inject those same views where you need it.You'll also find the magic constant
__DIR__useful for including files in relative directory structures.