Re: [PHP] Object Undefinded index

2003-10-30 Thread Allex
I'm just adding a working example to my last post; check the implementation part at the end of the script; Cheers, Allex class Item { var $_productID; var $_quantity; function Item($productID, $quantity) { $this->_productID = $productID; $this->_q

Re: [PHP] Object Undefinded index

2003-10-30 Thread Allex
In my view, to keep the object oriented approach cleaner you should use another class for describing your item, like: class Item { var $_product_id; var $_quantity; function Item($productId, $quantity) { $this->_product_id = $productId; $this->_quantity = $quantity; } function