getepiloguestate.php

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

    
openDatabase();

    
//Gets the final state of the game

    
$gameid getGameId();

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

    
$rowGame queryDatabaseForSingleRow($sGetStateQuery);

    
outputRowAsXML($rowGame);

    
$sCompatibilityQuery "SELECT COUNT(1) AS compatibilitycount FROM compatibility WHERE gameid = ".$gameid;

    
$rowCompatibility queryDatabaseForSingleRow($sCompatibilityQuery);

    
outputRowAsXML($rowCompatibility);

    
closeDatabase();

?>
</root>