PHP Web Development with MySQL Eratta
Chapter 6
- Page 46, remove example of array_push() for associative arrays and just use +=.
Chapter 9
All references to the northwind database need to be updated
- Page 79, Listing 9.4, Line 4, missing
$
in front of loop iterator variable.
Is:
1 |
|
Should be:
1 |
|
Chapter 12
- Page 100, broken links
Is: https://raw.githubusercontent.com/jpwhite3/northwind-MySQL/master/northwind.sql and https://raw.githubusercontent.com/jpwhite3/northwind-MySQL/master/northwind-data.sql
Should be: https://raw.githubusercontent.com/dalers/mywind/master/northwind.sql and https://raw.githubusercontent.com/dalers/mywind/master/northwind-data.sql
- Page 111, Listing 12.2, Line 30
Is:
1 2 |
|
Should be:
1 2 |
|
Chapter 19
- Page 232, 1st paragraph in section Complete Movie Image File Script
The definition of the function removeMovieImageFile()
is missing even though it is referenced throughout the book. Since this is a simple function, modify the following paragraph:
From:
Our completed movieimagefileutil.php
script including our validateMovieImageFile()
and addMovieImageFileReturnPathLocation()
functions looks like Listing 19.8.
To:
Our completed movieimagefileutil.php
script including our validateMovieImageFile()
, addMovieImageFileReturnPathLocation()
, and added convenience function removeMovieImageFile()
functions looks like Listing 19.8.
- Page 233, Listing 19.8 after Line 90
Add the following to the end of listing:
1 2 3 4 5 6 7 |
|
- Page 240, Listing 19.14, Lines 76-77:
in_array()
in this section of code is a cut-and-paste error from the editmovie.php
script.
Is:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
Should be:
1 2 |
|
- Page 297, Listing 21.7, Line 26
Is:
1 2 3 4 |
|
Should be:
1 2 3 4 |
|
Chapter 24
- Page 374, Last sentance in 'Only Show the Edit Link to Administrators' paragraph
Is:
...below the table starting after the right after the second closing </div>
tag.
Should be:
... below the table starting right after the second closing </div>
tag.
Chapter 26
- Page 454, first sentance in last paragraph before aside, should be i.e. and missing closing paren
Is: ...property (e.g., “camel case” style.
Should be: ...property (i.e., “camel case” style).
- Page 473, [9] link is dead