The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
parse error :*(
PHP Code:
|
#2
|
||||
|
||||
U need to global the function "$DB_site->"
|
#3
|
|||
|
|||
how is that done?
|
#4
|
||||
|
||||
If you are including global.php or config or whatever then you can use: global $DB_site;
Or you can use simply this, this will always work: $catsql = mysql_query("SELECT id, catname FROM ffacats ORDER BY catname"); |
#5
|
|||
|
|||
i see...'cause it's in a function...gotcha...thanks
|
#6
|
||||
|
||||
Yup. Functions has their own variables, so unless you global a variable inside a function, for example $one, $one inside the function will not be the same as $one outside the function.
And since you are using $DB_site as an object, you must globalize it first or PHP won't understand what you're trying to do with a variable which isn't even defined. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|