[PHP] Re: Including classes inside functions vs outside - scope/global[solved]

2003-09-02 Thread Verdon vaillancourt
Hi Greg, I've been on a holiday and just got to ttry this last night. Worked like a charm. Thank You! Salut, verdon > Hi Verdon, > > Be sure that $connobj is declared as a global variable in the > mysql_connection.php file. You can do this in two ways: > > 1) instead of $connobj = blah, use

[PHP] Re: Including classes inside functions vs outside - scope/global

2003-08-28 Thread Greg Beaver
Hi Verdon, Be sure that $connobj is declared as a global variable in the mysql_connection.php file. You can do this in two ways: 1) instead of $connobj = blah, use $GLOBALS['connobj'] = blah 2) global $connobj; $connobj = blah Regards, Greg -- phpDocumentor http://www.phpdoc.org Verdon Vaillanc