Chat Room Logout Users When They Quit
The chat room script below does one thing. It logs users out when they quit. Putting 0 in the logged_in field tells the chat scripts this user is logged out.
Save this file as quit.php
<?php
include_once"config.php";
$U=$_GET['u'];
mysql_query("UPDATE chatroommembers SET logged_in='0' WHERE username = '$U'") or die(mysql_error());
echo '<script language="javascript">window.location="chat-room-login.php"; </script>';
?>