Re: Time in php problem....

From: Date: Mon, 12 Feb 2001 18:56:54 +0000
Subject: Re: Time in php problem....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39249@lists.php.net to get a copy of this message
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 !


« previous php.general (#39249) next »