//connect to db $host="sql.controlyourserver.net"; // Host name $username="crashburn"; // Mysql username $password="4ccESav3ruVaV2Jr"; // Mysql password $db_name="crashburn"; // Database name mysql_connect("$host", "$username", "$password")or die("Unable to connect to database"); mysql_select_db("$db_name")or die("Error selecting database."); //grab the chat entires from the database, we cannot order them yet until Wolfy puts in a unique indentifier //unfortunately, so chat will only show the first 15 chats :( He said he will update soon though to fix this $q = mysql_query("SELECT * FROM tbl_Chatlog WHERE logSoldierName <> 'Server' AND logMessage <> '!rank' ORDER BY logDate DESC LIMIT 15"); ?>