[PHP] Passing database resource to object (OO)

2003-08-14 Thread Ben Edwards
Wan I insatiate an object I want to pass a database resource that can be used throughout the object. The below code should indicate what I want but I get the error mysql_query(): supplied argument is not a valid MySQL-Link resource. I guess this is because $this-$db = $db is wrong. Ben

Re: [PHP] Passing database resource to object (OO)

2003-08-14 Thread Curt Zirzow
* Thus wrote Ben Edwards ([EMAIL PROTECTED]): Wan I insatiate an object I want to pass a database resource that can be used throughout the object. The below code should indicate what I want but I get the error mysql_query(): supplied argument is not a valid MySQL-Link resource. I guess