I agree with Vincent...
if you got a session table in your database do a select on everyone and join it with the table that got the users names... you could also make a guest table just to keep count of how many guest are currently browsing...
guest table
CREATE TABLE guests(
last_active timestamp NOT NULL,
ip_number varchar(15) NOT NULL,
);
to tell how many guests are online do something like
SELECT count(ip_number) AS guests_online FROM guests;
but you gotta remmeber to do a DELETE FROM guests WHERE last_active < Now()-1800;
or something like that to make the guest sessions time out...
Andreas Bernhardsen