<?php
/**
class for work with game help
*/
class CGameHelp extends CBase
{
/**
Constructor
*/
function CGameHelp($database)
{
$this->db=$database;
}
function getGameMsg($id=1)
{
$sql = "select caption,text from game_help where vnum='$id'";
$result = $this->execSQL($sql);
if($result->numRows()==0) return false;
$row = $result->fetchRow();
$msg = array('caption' => $row[0], 'text' => $row[1]);
return $msg;
}
}
?>