Quote:
Originally Posted by Xia
uhm, what's the difference?
Update: I can access it fine in Sessions.php but not in the function build_session..
In that function it is defined as global $DB_site; so I don't understand why it wouldn't work. I echoed out the contents of $DB_site just before the call to the function and in the function. Works fine before, but is empty when inside the function.
Any ideas what is causing this?
Thanks
|
um the difference is that require_once requires parentheses. also if you can not echo a class or mysql query. it may not be recognized in your new function because you must use global $DB_site;