Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 15th, 2006, 10:25 AM
Registered User
Join Date: Oct 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beg. PHP5 > Ch12 - User class - just some info

At page 472 (Chapter 12) in the code for class User() is think there's a flaw that brings up the Exception error in the __set function. This is caused by the fact that $_changedProperties is not initialised at the beginning of the whole class declaration. Where the class statement now reads:

class User {
        private $_properties;
        private $_hDB;
        public function __construct($userID){
it should read

class User {
        private $_properties;
        private $_hDB;
        private $_changedProperties;
        public function __construct($userID){
At least this is the only way I could avoid the Exception error (apart from commenting out the $_changedProperties in the constructor function).

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Beg DWMX 2004 CH12 progrm crashing pg 434 Roo Dreamweaver (all versions) 7 October 3rd, 2006 01:42 PM
GenericObject class from Professional PHP5 codecowboy Pro PHP 0 December 14th, 2005 06:31 PM
Pro PHP5, Ch.15, Class file usage BillD Pro PHP 0 April 7th, 2005 11:08 PM
MSDE(.MDF) files Beg. ASP Ch12 p475 DANIV ASP.NET 1.0 and 1.1 Basics 0 March 28th, 2005 05:27 PM
Class Design Info... kaizer BOOK: Beginning Java 2 1 December 27th, 2003 06:49 AM

All times are GMT -4. The time now is 01:33 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.