note 44158 added to language.variables.scope

From: Date: Fri, 16 Jul 2004 09:58:21 +0000
Subject: note 44158 added to language.variables.scope
Groups: php.notes 
Request: Send a blank email to php-notes+get-73362@lists.php.net to get a copy of this message
Question! I need to know something..... I have 1 class (a database class) and i use it to run all my queries, so i can count how many i made....I have a second class which needs to make a query but if I use :: to access it, it doesn't add one to the counter (and I know why don't bother explaining). I was just wondering if i could access the database object from within the other class function...I tried the global keyword it didn't work....Please help ---- Manual Page -- http://www.php.net/manual/en/language.variables.scope.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44158 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44158&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44158&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#73362) next »