I am trying to use the anonymous who's online block but my problem is that when the person viewing the block isnt logged it, it doesnt show them anything meaning that for some reason they have no access to : $_CONF, $_TABLES, $LANG01 & $_USER
these 4 lines of code for some reason do not return anything, when they should.. maybe i am doing soemthing wrong:
$result = DB_query ("SELECT DISTINCT {$_TABLES['sessions']}.uid FROM {$_TABLES['sessions']},{$_TABLES['users']} WHERE {$_TABLES['users']}.uid = {$_TABLES['sessions']}.uid AND start_time >= $expire_time AND {$_TABLES['sessions']}.uid <> 1"
;
$numReg = DB_numRows ($result);
$result = DB_query ("SELECT DISTINCT uid,remote_ip FROM {$_TABLES['sessions']} WHERE uid = 1"
;
$numAnon = DB_numRows ($result);
::so if i am not logged it $numAnon should atleast be 1 but it always is 0..
can anyone tell me how to fix this?
DarkG