getdatestate.php

<? include 'xmlheader.php'?>
<?
echo "<?xml version=\"1.0\" ?>";?>
<root>
<?php     
    
include 'include.php';

    
openDatabase();

    
//Gets the state of the game to display during the date

    
$gameid getGameId();

    
$sGetStateQuery "SELECT * FROM game WHERE gameid = ".$gameid;

    
$rowGame queryDatabaseForSingleRow($sGetStateQuery);

    
outputStatus($rowGame["turn"], $rowGame["dateno"]);

    
outputRowAsXml($rowGame);

    
outputTraits();
    
outputCharacterNames();
    
outputConflicts();
    
outputCompatibilities();

    
closeDatabase();
?>
</root>