*/
include_once("configuration.php");
include_once("functions.php");
SI_pconnect();
if (!mysql_query("DESCRIBE $SI_tables[stats] language"))
{
echo "We need to update the $SI_tables[stats] table...
";
$sql = "ALTER TABLE $SI_tables[stats] ADD language VARCHAR(5) NOT NULL default '' AFTER country";
if(mysql_query($sql))
{
echo "Update Successful... you can go about your merry way!";
}
else
{
echo "Whoa! there was a slight problem....
".mysql_error();
}
}
else
{
echo "
The necessary tables already exist and were updated. This file should be removed from your server.
"; } ?>