Learning PHP 5 by David Sklar Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification The following errors were corrected in the 5/08 printing. {7} Example 1-2 HTML; The input tags should have been changed to read: and {83} Code for exercise 5-3; The entire code example now reads: $cash_on_hand = 31; $meal = 25; $tax = 10; $tip = 10; while(($cost = restaurant_check($meal,$tax,$tip)) < $cash_on_hand) { print "I can afford a tip of $tip% ($cost)\n"; $tip++; } function restaurant_check($meal, $tax, $tip) { $tax_amount = $meal * ($tax / 100); $tip_amount = $meal * ($tip / 100); return $meal + $tax_amount + $tip_amount; } And the corresponding answer block in appendix C, section C.5.3 (page 303) now reads: I can afford a tip of 10% (30) I can afford a tip of 11% (30.25) I can afford a tip of 12% (30.5) I can afford a tip of 13% (30.75) [91] Example 6-7; Added the following text to the last paragraph on page 91: However, if your PHP configuration has error_reporting set to include E_NOTICE level errors, then you will see a message about _submit_check not being defined. If you want to suppress those messages, you can use array_key_exists(). {102} line 6; again in Figure 6-4; The Code block after the text "...then Example 6-22 prints:" now reads: I <b>love</b> sweet <div class="fancy">rice</div>& tea. In figure 6-4: ...rice & tea now reads: ...rice & tea {106} Example 6-29 -Last function listed on page; In the example, the line if ($selected_options[$option]) { Should be changed to if (isset($selected_options[$option])) { {161} first code sample; ini_set('session.gc_maxlifetime',600'); // 600 seconds = = ten minutes now reads: ini_set('session.gc_maxlifetime',600); // 600 seconds = = ten minutes {187-188} both if ($_POST['_submit_check']) statements in Example 9-17. Each instance of if ($_POST['_submit_check']) { now reads: if (isset($_POST['_submit_check'])) { [283] Table B-2, In the last row of Table B-2, the third Column ("Matches"), it now reads: dog and cat and chicken, dog and cat and chickens, hotdogs and cats, dogs and cat and chickens, dog and cats and chicken, dog and cat and chickensoup, dogs and cats or chickens, dog and cat and chickenlegs and the fourth column ("Doesn't match") now reads: doggies and cats, dogss and catss