source: trunk/www/Module/Server/ModelList.php

Last change on this file was 95, checked in by chronos, 10 years ago
  • Upraveno: Soubory různých logických částí systému odděleny do aplikačních modulů.
File size: 293 bytes
Line 
1<?php
2
3include_once(dirname(__FILE__).'/../../Base/Model.php');
4
5class ServerList extends Model
6{
7 function ServerCount($UserId)
8 {
9 $DbResult = $this->Database->query('SELECT COUNT(*) FROM Server WHERE User='.$UserId);
10 $DbRow = $DbResult->fetch_row();
11 return($DbRow[0]);
12 }
13
14}
Note: See TracBrowser for help on using the repository browser.