This can maybe be added to my other post, it's pretty much a continuation of the 1st article.
http://www.iceteks.com/articles/db.php/act/view/article/php2/p/1
The first one goes through the basics of php, and this one goes through using file and mysql databases.