View Full Version : global.php
gengar003
05-31-2003, 11:31 PM
Anything (e.g., variable) that I set in global.php will be available in any vb page, since they all include/require it, right?
filburt1
05-31-2003, 11:36 PM
Yes, provided:
1. It isn't a reserved variable
2. It isn't overwritten/unset at any point
3. It's within the proper scope
4. It is put in the correct global.php
gengar003
05-31-2003, 11:42 PM
j...a...r..g...o..n... does not co...m...putt...e...
so, If I wanted to run a piece of code to check the value of a field in the table USER, and run an IF statement based on that, which would include setting a variable that I would want to a.) not be changed, and b.) be used in a template, I'd put it... where?
note: tried top and bottom, but it gave me errors.
Gary King
06-01-2003, 12:12 AM
The user table is automatically SELECTed, so anything you need to pull from the user table is ready for you to use.
gengar003
06-01-2003, 12:54 AM
I got it to work, thanks ! :)
Gary King
06-01-2003, 01:13 AM
No problem, just glad to help!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.