kyama - I am a beginner to and I code like OhLordy. One thing I would add though, is that I have had enough problems not closing out conditional and other control structures that I know comment the hell out of my code.
Example:
//check and see if the ArticleIndex has been viewed.
if (!$articleIndex) {
//it has not, so show it
$articleIndex = array_search($articleChoice, $article);
} else { //else for checking if index has been viewed
//it has, retrieve the article
$articleChoice = $article[$articleIndex];
} //end else checking if index has been viewed
I know it seems like overkill on that simple example, but some scripts I work on have many nested conditionals, and it can get confusing if you need to go back and change things around or if you are getting unexpected parse errors....