I think you can do all of these using the session.
In your log on script, after validating his uid and pwd, insert a row 
with current timestamp and his id.
Either during log off or session close insert another row with uid and 
current time stamp. (This part I never done)
Rest is to manipulate the values the log table information. (may be 
develop a admin screen, which manipulates the log table)

Hope this helps.

Ng Kok Chun wrote:

> hi... i need some help...
> 
> currently i doing web base programming ( econsultant )using php, apache and mysql as 
>well... now i facing a problem which i need :
> 1) get time when consultant log on
> 2) get time when consultant log off
> 3) calculate how long for the specified consultant been log on to the web
> 4) accumulate all the time everyday
> 5) then multiple accumulate with working rate ( X ).
> 6.) finally output to web ( html form )
> 
> pls help !
> thanks !
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to