RE: [PHP] Re: who's in the chat?

2002-10-10 Thread James E Hicks III

My chat stores usernames, timestamps in a table on DB. When refresh script runs,
it updates the timestamp on usernames and deletes rows in DB with stale
timestamps (no refresh run). Pulling usernames from this table gives current
chat users.

James


-Original Message-
From: Oliver Witt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: who's in the chat?


Jason Young schrieb:

 Without knowing how your chat works as far as entering the chat, you DO
 have to put some sort of name with the person, right?  Perhaps you could
 just update a temp table with their chat name..

 Or if you can only get into chat by logging into the site, you could
 just set a bit with their cookie data or something..

 Is this not what you wanted to do? (I guess I should have asked you to
 elaborate :) )

 Just throwing suggestions out there
 -Jason


I've been trying something similar like that. How can I update a temp table
when they enter and leave the chat? That's my problem,
Olli




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: who's in the chat?

2002-10-10 Thread Oliver Witt

James E Hicks III schrieb:

 My chat stores usernames, timestamps in a table on DB. When refresh script runs,
 it updates the timestamp on usernames and deletes rows in DB with stale
 timestamps (no refresh run). Pulling usernames from this table gives current
 chat users.

 James


That's a cool idea, I'll try that.
Thanks,
Olli





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: who's in the chat?

2002-10-10 Thread Chris Hewitt

Oliver Witt wrote:

The problem is when they leave. There is no leave button because most of them
wouldn't use it anyway.
Olli

That is a problem with html, not a particular application. You have to 
time the visitor out.

HTH
Chris



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php