![]() |
functions error
okay, here's the error:
Quote:
Code:
$rankagefetch=$DB_site->query("SELECT * FROM usertitle WHERE rankcat='$post[ranksetid]'"); And here's the functions.php attached if ye need it. |
$DB_site isn't globalized in the function where you have this code, add it to the globals.
also if this is getpostbit you should remove that hack, because it generates one query per post which is bad... also you are not allowed to attach full vb-files! |
oh, sorry, didn't know about that. I have no idea what the getpostbit is, soo..
Do i just do require("./global.php"); ? EDIT: No, that didn't work, i get a new error: Quote:
|
make a variable global has nothing to do with global.php
it's basic php knowledge when working with functions. it's meant to put global $DB-site; before that block of code |
Sorry to annoy you, but being the complete hacking newbie that i am, how exactly do i do that, i mean, step by step. Act like your talking to a little child or something. Step by step...lol
|
as i said change your code you posted above into that:
PHP Code:
|
alrighty, all try that
|
okay, now it contacted the db, but i get thsi error:
Quote:
B: There is a miniposts field in the usertitle db. Here are some db things: The new table i added is called "cats", with two columns "rankcat" and "catname" In usertitle table, i added a "rankcat" column. In user, i added a "ranksetid" column Just thought that might be important |
the column is call minposts, not miniposts. ;)
|
lol. oops! let me try that
|
All times are GMT. The time now is 09:20 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|