Errata
Submit your own errata for this product.
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question
| Version | Location | Description | Submitted By | Corrected |
|---|---|---|---|---|
| Printed | Page 24 29 30 33 35 36 all examples of variable $fang_spotted on these pages |
each code example of the variable $fang_spotted = $_POST['fangspotted'] doesn't end with a semi-colon Note from the Author or Editor: |
Matt Worthington | Jun 2009 |
| Printed | Page 148 second 'sharpen your pencil' answer |
The answer to the second question should be "33". The problem states that there are 23 customers with a first name of Anne, and 11 customers with a last name of Parker. Note from the Author or Editor: |
Johny X | Jun 2009 |
| Printed | Page 210 first paragraph |
the sentence "... only one *common* can be made the primary key" probably should be "... only one *column* can be made the primary key" |
john | Jun 2009 |
| Printed | Page 256-257 connectvars.php code |
The connection variables on pages 256-257 don't match up. So what is shown in connectvars.php on 256 for DB_PASSWORD and DB_NAME is different than what is shown as being included in index.php on 257. Note from the Author or Editor: |
sanders kleinfeld | Jun 2009 |
| Printed | Page 269 top of code example |
if ($_FILES['file']['error'] == 0) { |
Shaya | Jun 2009 |
| Printed | Page 286-289 removescore.php code |
The screen shot image filename is not being sent along as part of the POST data, resulting in the screen shot image file on the server not being removed when a score is removed. The solution is to add a new hidden form field to the generated form using the following line of PHP code: |
![]() Michael Morrison |
Jun 2009 |
| Printed | Page 326 sharpen your pencil code |
In this piece of code: Note from the Author or Editor: |
Benjamin Groeneweg | Jun 2009 |
| Printed | Page 347 1st paragraph |
It says in the first paragraph: "A database called mismatch_user is used...", but the database isn't called like that, the table within the database is. The name of the database is Mismatch in the book, and in the downloadable code for the book it is mismatchdb. Note from the Author or Editor: |
Benjamin Groeneweg | Jun 2009 |
| Printed | Page 544 case 3: third blank to be filled |
This is probably just a typo, but the written in answer on the third line I believe should be 5, not 3. The data location being accessed does not mention a date as it should, but the state. Note from the Author or Editor: |
chris beaver | Jun 2009 |
| Printed | Page 594 3rd paragraph (last block of text) |
It says to try out a few other variations, among one which is 707.827.7000, followed by how it should be noticed that the extra characters are removed. But the regex expression used does not remove the dots, only these characters: ( ) - \s. Note from the Author or Editor: |
Benjamin Groeneweg | Jun 2009 |
| Printed | Page 623 - |
The download captcha for chapter 11 contains SHA(), while this should be SHA1(). It causes an error when trying to run. Note from the Author or Editor: |
Benjamin Groeneweg | |
| Printed | Page 715 Seventh row of table |
The order of the arguments to the mysql_query() function are in the wrong order, and should be swapped. The correct form of the function is mysql_query(query, conn). Note from the Author or Editor: |
![]() Michael Morrison |
Jun 2009 |
| Printed | Page 721 Step 1, Write Your Class |
While declaring the function, "function song(...", the second argument is "$length". I expected it to be $lyrics. Note from the Author or Editor: |
Neil Mc | Jun 2009 |

