Skip to main page content.

Adobe Dreamweaver CS3 with ASP, ColdFusion, and PHP: Training from the Source

Errata

Adobe Dreamweaver CS3 with ASP, ColdFusion and PHP: Training from the Source

Please help me and your fellow readers by submitting any errors you find to Peachpit. The book's ISBN number is 0321461061.

As errors in the book are reported and confirmed, the corrections will be posted here.

If you are unsure something is an error please head to Adobe's Dreamweaver Application Development forum and post your question. Please reference this book and I'll keep an eye out for it.


Page 130: Top of the page. Spacing in the code is hard to read. It looks like the closing single quote is on top of the commas.
setcookie('firstName', $_GET['firstName'], time() + (60*60*24));
setcookie('lastName', $_GET['lastName'], time() + (60*60*24));

Page 182: Top of the page. Spacing in the code is hard to read. It looks like the closing single quote is on top of the commas.
<?php setlocale(LC_MONETARY, 'en_US'); echo money_format('%i', $tourPrice); ?>

Page 185: PHP conditional is missing "if". It should read
if(!(is_numeric($_POST['numAdults'])) or !(is_numeric($_POST['numChildren'])))

Page 187: The opening <form> tag might start as early as line 28 in your version of tourprice.asp.

Page 188: PHP version of step 2 should read
if (isset($_GET['error']) && $_GET['error'] == "notnumeric"). This is for the same reason as stated for ColdFusion in step 4 on page 189. We use isset() to make sure the variable exists. Otherwise you will get an error.

Page 462: PHP version of the WHERE clause of the query should read
WHERE countryID=".mysql_real_escape_string($_POST['countryID']); The "." for concatenating the variable to the string was in the wrong spot. I typed it before the $_POST. It needs to be after the double quote.