require "constants.php"; $title = "Anathema Online Chatroom"; include "index-top.php"; $account_id = getInfo(id,accounts,"WHERE username='$account'"); $date = date('g:i A F jS Y'); $ip = $_SERVER['REMOTE_ADDR']; $hostname = gethostbyaddr($ip); $query = "INSERT INTO chat_users VALUES('','$user_name','$account_id','$date','$ip','$hostname')"; mysql_query($query); ?>