Tip:
Don't take much of that to heart, ie: formatting, and most notably "<?php echo 'blah'; ?>".
Use proper indentation, and remember. There's more than one way to do something.
For example:
Code:
I have a <?php echo $_GET['item']; ?>.
Better to use, for that instance, though I'm not much a fan of mixing PHP with raw HTML:
Code:
I have a <?php=$_GET['item']; ?>;
As I said, more than one way to do things.
So you could do prepare the template behind the scenes, and mix and match data into it, which is my preferred method when it comes to mixing HTML and PHP. Though, I rarely use raw HTML in any of my PHP scripts anymore. These come from external sources, in much the same way as the Smarty library works, though my own system isn't quite the same.
Recommend any newbies to use the Smarty library as a starter resource to mixing and matching raw HTML with PHP properly, but do not recommend its use beyond that. :P
But hey, nothing against the library itself. :)
As for that guide, the author could've been a bit more careful with specific issues, but overall an alright guide for newbies.