" . $expiretime); if(!mysql_fetch_array($result)){ mysql_query("DELETE FROM jenChat_Users WHERE LastUpdate <= " .$expiretime); mysql_query("DELETE FROM jenChat_Messages WHERE Posted <= " . $expiretime); mysql_query("INSERT INTO jenChat_Users(UserName,LastUpdate) VALUES ('".mysql_real_escape_string($_POST['who'])."'," . date("YmdHis",time()).")"); $_SESSION['jenChat_UserID'] = mysql_insert_id(); $_SESSION['jenChat_Prevtime'] = date("YmdHis",time()); header("Location: ./chat.php"); exit; } else $error = "A user with the same handle is currently in the chat room. Please try a different handle."; } else $error = "Handles may only contain letters, numbers, hyphens and dashes."; } else $error = "You must enter a handle (screen name) to enter the chat room."; } ?> jenChat

jenChat

Login