View file system/class/mysql.php
<?php /* ------------------------------ ############################## - Загруз Центр - - by Kemel - ############################## ------------------------------ */ defined('Loads') or die('Error!'); final class mysql extends mysqli { public function dbcount($field,$table,$where = '1') { $ass = $this -> query("SELECT ".$field." FROM ".$table." WHERE ".$where." LIMIT 1"); $arr = $ass -> fetch_row(); $ass -> free(); return $arr[0]; } } ?>