PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
Unfortunately, despite the best efforts of myself, the technical editor, the copy editor, the line editor, the proofreader, and despite the multiple revisions, errors still occur. This page lists all the errors found in the book since it went to print.
Note: errors are corrected in subsequent printings and therefore your particular copy may not contain all of the following. You may also be experiencing problems not caused by a mistake in the book. If so, you may find the solution to your problem by using the book’s corresponding forum. Significant changes in the technology will be addressed there and you can also find problems and solutions encountered by other readers.
Known Errors in the Book:
\[ is missing after **$data**. The corresponding code in Step 2 is correct.March 14, 2012Chapter 13: Security Methods403The second sentence at the top of the right-hand column should identify Chapter 14 as "Perl-Compatible Regular Expressions".June 13, 2012Chapter 13: Security Methods405The parenthetical near the end of the first paragraph should say "i.e., $v was found in $value".August 28, 2012Chapter 13: Security Methods405On line 58 of Script 13.1, the **$scrubbed** array should be reset instead of **$\_POST**, as this new array is what the form will use.May 1, 2012Chapter 14: Perl-Compatible Regular Expressions450The first line of the second paragraph should begin "Of these modifiers,"January 2, 2013Chapter 16: An OOP Primer514On lines 79-80 of Script 16.5, the form elements should be named just "start" and "end". The code in the corresponding step is correct.January 2, 2013Chapter 17: Example—Message Board530Step 2 is missing **session\_start();** as the first line of code, corresponding to Script 17.1, line 14.February 3, 2016Chapter 18: Example—User Registration563At the end of Script 18.2, the phrase "paste code here" should not be there. Ugh.December 8, 2011Chapter 18: Example—User Registration586The code in Step 2 should refer to **$\_GET\['x'\]** not $trimmed\['email'\] (that’s what I get for copying and pasting). The code in the corresponding script is correct.March 3, 2012Chapter 18: Example—User Registration598Figure E is incorrect.January 8, 2012Chapter 18: Example—User Registration599Script 18.11, line 7, the comment should refer to user_id, not first_name.February 3, 2016Chapter 19: Example—E-Commerce621On line 138 of Script 19.2, the two references to $_POST\['existing'\] should be to $_POST\['artist'\]. This also applies to the code in Step 15 on page 627.December 8, 2011Chapter 19: Example—E-Commerce635On line 35 of Script 19.6, the closing is missing. This also applies to the code in Step 5 on page 636.January 2, 2013