A chatbox is simple,For earning points for game wait until the user completes the game and add something like
<?php
if($_POST['take'])
{
(UPDATEHERE)
}
?>
here the script database.php <?php //made by maleck mysql_connect("host","username"," password") or die('sorry could not connect')): mysql_select_db("database name"); ?>
Just include this into your status script like this. include("database.php");
If the die give you error change it too this. or die(mysql_error());