Sample code used in Sams Teach Yourself PHP, MySQL and Apache All-in-One (5th edition, 2012)