Re: Re: passing a mysqli object via globals
| From: | julian | Date: | Mon, 03 Dec 2007 16:26:43 +0000 |
| Subject: | Re: Re: passing a mysqli object via globals | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44380@lists.php.net to get a copy of this message | ||
Dee Ayy wrote:
Hopefully your only issue is the keyword global versus globals ?Not sure what you mean. global $db should bring to local scope a reference to the object that has the data base connection. PHP complaints that it cannot access properties or methods of that object in the obj/f1/ scope.... I tried using the $GLOBALS['db'] with same results..... really lost...