Re: PLEASE HELP - Update database on browser close??
Posted: Sat Nov 13, 2010 5:07 am
Sorry I shuold be more specific, it does not update the database, it just does nothing.
What i want is for the following query to be executed if the user closes the browser:
mysql_query("UPDATE users SET status='Offline' where alias='".($_SESSION['alias'])."';");
The user status is online even if the browser is closed and reopened, it does not execute the query. What i want is to update the database on browser close.
What i want is for the following query to be executed if the user closes the browser:
mysql_query("UPDATE users SET status='Offline' where alias='".($_SESSION['alias'])."';");
The user status is online even if the browser is closed and reopened, it does not execute the query. What i want is to update the database on browser close.