Topic: PHP/MySQL

Professional PHP Design Patterns (0470496703) cover image

Professional PHP Design Patterns

Aaron Saray
ISBN: 978-0-470-49670-1
Paperback
288 pages
August 2009
This title is out-of-print and not currently available for purchase from this site.

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
16 107 Error in Code
In the source cod, the array $boughtCDs should have a key 'title' for value 'Long Road' and 'Waste of a Rib'.

The code should be like this:

$boughtCDs[] = array('band'=>'Never Again', 'title'=>'Waste of a Rib');
$boughtCDs[] = array('band'=>'Therapee', 'title'=>'Long Road');
04/24/2010
164 Error in Text
if ($array) {
if (!isset($_SESSION[$name])){
$_SESSION[$name] = array();
$_SESSION [$name][] = $value;
}

Should be:

if ($array) {
if (!isset($_SESSION[$name])){
$_SESSION[$name] = array();
}
$_SESSION [$name][] = $value;
}
11/24/09