Readable code is self-explaining and much easier to maintain. Putting spaces "only where needed" and not using empty lines is great way to make the code less readable.
Well this may sound both trivial and hard-to-follow advice, but I think it should be considered:
If you stop liking something, stop doing it. At least for a while.
This. EU is not a single country and wages do widely differ. Yet, even the poorest countries have to pay more than "Americans".
Templates? Either in PHP or anything else (Smarty, Twig etc.).
It goes beyond just the database, take a look at both available files - index.php and redirect.php: that's some ugly copy&pasting!
Second, of course. Kill the first guy.
Readable code is self-explaining and much easier to maintain. Putting spaces "only where needed" and not using empty lines is great way to make the code less readable.
Well this may sound both trivial and hard-to-follow advice, but I think it should be considered: If you stop liking something, stop doing it. At least for a while.