2 include_once("auth.php");
3 if (!$_GET["message"]) { die("No Chat Message Sent"); }
4 $_GET["message"] = mysql_real_escape_string($_GET["message"]);
5 $sql = 'insert into chat values ("", '.$user_id.', "'.$_GET["message"].'", NOW())';
6 $result = mysql_query($sql);