Re: [PHP] Classes and Functions and If's (Problems Again)

2005-11-03 Thread Robin Vickery
On 11/4/05, Unknown Unknown <[EMAIL PROTECTED]> wrote: > Hi everyone, i have some code that proccesses a login form. i have an object > $DB which works only in SOME areas, this is the code: > [...] > $DB="membersp"; > $SQL="SELECT ID FROM membersonline WHERE ID='$ID' "; > $DB->Query($SQL); [...] >

Re: [PHP] Classes and Functions and If's (Problems Again)

2005-11-03 Thread Jasper Bryant-Greene
On Thu, 2005-11-03 at 18:37 -0500, Unknown Unknown wrote: > Hi everyone, i have some code that proccesses a login form. i have an object > $DB which works only in SOME areas, this is the code: > > require_once("Include.php"); > global $DB; There is no need to global $DB here. You are already in