Errata

Learning PHP and MySQL

Errata for Learning PHP and MySQL

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 "Date 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 Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed
Page 15
item 1

http://httpd.apache.or/download.cgi
should be
http://httpd.apache.org/download.cgi

Anonymous   
Printed
Page 21
item 1:

php4ts.dll should be php5ts.dll; and php2apache2.dll should be php5apache2.dll

Anonymous   
Printed
Page 22

For Step 5, this line should be added, it was highlighted but not explained:
add this line: LoadModule php5_module c:/php/php5apache2.dll

to the Notepad file underneath:
# LoadModule foo_module modules/mod_foo.so
#

Therefore, the Text Editor file should read:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule php5_module c:/php/php5apache2.dll

Anonymous   
Printed
Page 22

Step 6 should come after Step 7. They need to be reversed.

Anonymous   
Printed
Page 43
Table 3-1. PHP Super globals

The Contents for the Variable array name $_COOKIE reads:
Contains inform from HTTP cookies

should be:
Contains information from HTTP cookies

Anonymous   
Printed
Page 44

test:ng is a typographical error. This should read:

testing, with an "i" instead of an ":", therefore needs to change.

Anonymous   
Printed
Page 51
"Combined assignment" section, beginning of second paragraph

insert the word "of":
Combined assignment operators take the form OF the arithmetic ...

Anonymous   
Printed
Page 52
first sentence of "Autoincrement and autodecrement" section

"either", not "ether"

Anonymous   
Printed
Page 53
Example 3-25

Spelling error: "afterwords" should be "afterwards"; two occurrences

Anonymous   
Printed
Page 62
2nd paragraph

Poorly phrased (redundant): "Since it has right associativity, the assignment
operator is one of the exceptions, since it has right associativity."

Anonymous   
Printed
Page 67
1st paragraph

$user_name should be $username.

Anonymous   
Printed
Page 67
first display in "The ? Operator" section

you have {expression}; should be (expression)

Anonymous   
Printed
Page 69
Example 4-11

the following:

echo "Perform actions for shipping.<br>";
}

is a duplicate and should be deleted.

Anonymous   
Printed
Page 72
"do...while Loops" section in first code block

missing the word "while" before (expression)

Anonymous   
Printed
Page 83
Example 5-5

"Now do the same with the echo parameter set to FALSE" should read "the each
parameter."

Anonymous   
Printed
Page 99
3rd paragraph

while associative arrays use stings
should be
while associative arrays use strings

Anonymous   
Printed
Page 114
Last-but-one paragraph

"When thinking about you database" should be "When thinking about your database".

Anonymous   
Printed
Page 125
last line of page, bullet point

NULL should always be quoted
should be
NULL should never be quoted

Anonymous   
Printed
Page 148
Last line of example code

Forgot the "FROM" before `authors` as in:

EXPLAIN SELECT * FROM `authors` WHERE `author` = 'Arnold Robbins';

Anonymous   
Printed
Page 156
2nd paragraph

The paragraph states that the DAYOFWEEK function numbers days starting with Saturday as 1, but Table 8-3 indicates that DAYOFWEEK numbers Sunday as 1.

Anonymous   
Printed
Page 168
Section on "Troubleshooting connection errors"

The paragraph states that it will be necessary to edit lines 461 and 589 of C:WINDOWSphp.ini, but the author is vague about what edits need to be made.

Anonymous   
Printed
Page 178
Top

Top paragraph on the page:
"The require_once function errors out if the DB.php file is not found. It also will not include the file if it has been incorporated already. And, this would cause an error."
should be:
"The require_once function errors out if the DB.php file is not found, or if the file has been incorporated already.

Anonymous   
Printed
Page 178
middle

The example "connection = DB::connect("...");" should match the actual line it is
quoting - it should read "$connection = DB::connect("...");" - the dollar sign is
missing in the book.

Anonymous   
Printed
Page 178
middle

The example in italics doesn't match the following paragraph.
"dbtype://username:password@host/database"
should be:
"phptype://username:password@host/database"

Anonymous   
Printed
Page 182
2nd paragraph

"search sting" must be "search string".

Anonymous   
Printed
Page 193
Example 10-8

Missing opening html tag.

Anonymous   
Printed
Page 263
Example 13-14.

6th line in example says...

"DELETE THIS PAR AFTER MOVING THE FIGURE ANCHOR"
was a production error and should be removed!

Anonymous