Код:
<?php  
# Private by Freelance Design Center  
# Script for GamerGrad Server  

define("_HOST_", "localhost");# host  
define("_HOSTUSER_", "sa");# login  
define("_HOSTPASS_", "");#password  
define("_WORLD_", "rf_world");#world  
$msconnect=mssql_connect(_HOST_,_HOSTUSER_,_HOSTPASS_);  
$res = mssql_query("SELECT * FROM "._WORLD_.".dbo.tbl_racebattle_log ORDER BY idx DESC ");  
$row = mssql_fetch_assoc($res);  
$resulty1 = mssql_query("SELECT Name FROM "._WORLD_.".dbo.tbl_base WHERE Serial = '".$row[bossserial0]."'");  
$Name0 = trim(@MSSQL_RESULT($resulty1,0,"Name"));  
$resulty1 = mssql_query("SELECT Name FROM "._WORLD_.".dbo.tbl_base WHERE Serial = '".$row[bossserial1]."'");  
$Name1 = trim(@MSSQL_RESULT($resulty1,0,"Name"));  
$resulty1 = mssql_query("SELECT Name FROM "._WORLD_.".dbo.tbl_base WHERE Serial = '".$row[bossserial2]."'");  
$Name2 = trim(@MSSQL_RESULT($resulty1,0,"Name"));  

echo "<p><big>Представители расы</big></p>";  
echo "<p>Федерация Беллато: <b>".$Name0.'</b></p>';  
echo "<p>Альянс Кора: <b>".$Name1.'</b></p>';  
echo "<p>Империя Акретия: <b>".$Name2.'</b></p>';  
?>