PDA

View Full Version : error when adding non-vb pages to who's online


chris frolic
06-23-2003, 07:37 PM
I'm trying to add non-vb pages to my Who's online.

I added

require_once( './global.php' );

to the page I would like added. Problem is, when that page is run I get this error:


Invalid SQL: DELETE FROM session WHERE sessionhash=''


The rest of the page executes, and it DOES show up on my Who's Online if I look at that time (location unknown, but I know how to edit that).

Any ideas?

filburt1
06-23-2003, 07:45 PM
What's the entire error? That query by itself looks fine.

chris frolic
06-23-2003, 10:19 PM
Ok, I think I've figured out part of my problem.

I'm running vbHome (lite) which is in my root directory.

Vbulletin is in /vb/

The files I'm trying to track are also in my home directory.

vBhome has it's own global.php which is in my root directory, and I suspect that's what's being loaded with the require.

I don't know php very well, but with all this being the case, what would I change the require path to, so that it's loading the correct global.php for the files in my root directory?

Thanks for your help.