hey, i have a website that uses mysql and php so that users can login and sign up. wen a user logs in it adds an 'online' message to the table where there username is stored, and when they click logout it adds a 'offline' message. This all works fine no problem there, but i also have a rember me feature, if some uses it they dont logout, there for the table still has an 'online' message, and this also happens if they just close the window even if they havent used the remeber me feature... i wanted to add a code that will make the 'online' message go to 'offline' when they close the window... i understand that if this is posible it will probably be java but that isnt a problem as most of my site requires java anyway...
if any1 could help me with this i would be very pleased
thanks in advance, Leo
also while im here, can any1 tell me how to change the time zone in this code please?
Code: Select all
$todays_date = date('d/m/Y - h:ia');
when used with other bits of script it adds the date and time to my table, BUT it adds the tima as UTC... meaning the time is displayed an hour erlier than i want it to... i read up that u use the letter Z and some numbers representing seconds, but i couldnt figure it out... it just added a 0 for the Z and displayed the digits after the Z
Help on either 1 would be great

thanks
