hi, i have a question about session controle
how would i do a action in PHP that goes off when a user exits the window, or leaves to a new site
this is what the action will be when they leave/exit
if ($validvc=="deathbladedojo") {
mysql_query("UPDATE members SET logged='offline' WHERE username='".$_COOKIE["dbdusername"]."'");}
this is to make the user's status be offline when they leave or login
More Information:
i'm a newbie at MySQL and PHP, but none the less, it's something i've always wanted to learn, and i'm really very excited about it, _
i have been learning MySQL and PHP for about 4 or 5 days now, and with that knowledge, i've been doing a prject i've been wanting to do for over a year now, make a Message Board, and that is what this support question's answer will be going to, if you wish to view the board...well, the layout is ugly right now, becuase i'm focusing on coding first, then when thats done, i'll do layout and style...here it is if you need/want to view it
http://forums.deathbladedojo.com/
thank you