<?php
/**
class for work with game mgs
*/
class CGameMsg extends CBase
{
/**
Constructor
*/
function CGameMsg($database)
{
$this->db=$database;
}
function getGameMsg()
{
$sql = "select text from game_msg ORDER BY RAND() LIMIT 1";
$result = $this->execSQL($sql);
if($result->numRows()==0) return false;
$row = $result->fetchRow();
return $row[0];
}
}
?>