Learning PHP 5 by David Sklar The following errata were *corrected* in the 11/04 reprint: 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 (10) example 1-7, line 12; $q = $dbh->query("SELEC...); NOW READS: $q = $db->query("SELEC...); (11) 5th paragraph; "Appendix B provides the basics of SQL." NOW READS: "Chapter 7 provides the basics of SQL." {23} Paragraph 1; "The .2 formats $price + (1 + $tax)..." NOW READS: "The .2 formats $price * (1 + $tax)..." (32): In Exercise 5, The superscripts were mistakenly printed as "^1" and "^5" instead of just "1" and "5". THIS HAS BEEN CORRECTED. (56), the line before the last one "print "Element 1 is How to Cook in Eat in Chinese"; NOW READS: "print "Element 1 is How to Cook and Eat in Chinese"; [73] last function definition (all optional arguments) half way down page; // All optional arguments function page_header6(... NOW READ: // All optional arguments function page_header7(... {92} 3rd line in example 6-8; if ($_POST['_submit_check']) { NOW READS: if (array_key_exists('_submit_check', $_POST)) { [96] Example 6-11; if ($_POST['age'] != strval(intval($_POST['age'])) { $errors[] = 'Please enter a valid age.'; } NOW READS: if ($_POST['age'] != strval(intval($_POST['age']))) { $errors[] = 'Please enter a valid age.'; } {105} Example 6-27; if ($selected_options[$option]) ... NOW READS: if (array_key_exists($option, $selected_options)) { {106} Example 6-29. Form element display helper functions; //print a text box function input_text($element_name, $values) { print ''; } NOW READS: //print a text box function input_text($element_name, $values) { print ''; } (115) paragraph 5; "...the group of values for on particular dish..." NOW READS: "...the group of values for one particular dish..." (116) First paragraph; At end of first line, "int his" NOW READS "in this" (214) 3rd paragraph; "sets $element_name to the name of an child" NOW READS: "sets $element_name to the name of a child" (249), paragraph below the heading "Advanced Math": The two superscripts were mistakenly printed as "^308" instead of just "308" THIS HAS BEEN CORRECTED. (292), Example B-8, last line of the example; '\1 at \2', $members); NOW READS: '\\1 at \\2', $members);