$this->$database = new database(); $this->$accessory = new accessory(); $this->$order = new order();
These should be...
$this->database = new database(); $this->accessory = new accessory(); $this->order = new order();
You don't want the $ unless $database, $accessory and $order are strings containing the class attribute names.
Additionally, you might want to assign the reference of the new objects otherwise PHP will create a new object and then make a copy of it - not very efficient. Like so...
$this->database = & new database(); $this->accessory = & new accessory(); $this->order = & new order();
-- Stuart
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php