$tb->execute();
		$this->arrC = $tb->fetch(PDO::FETCH_ASSOC);
		return $this->arrC;
	}
	function getUserLogin($userId){
		$sql = 'SELECT * FROM inner_users WHERE user_login LIKE :userid';
		$tb = $this->db->connection->prepare($sql);
		$tb->execute(array(':userid'=>$userId.'%'));
		$this->arrUserLogin = $tb->fetch(PDO::FETCH_ASSOC);
	}		
}

//-- We count DB for DESC
$getSumm = new mainpage_CountDB();

if($_GET['IU-filteruser']){
	$arrUser = $getSumm->getUserLogin($_GET['IU-filteruser']);	
}

if($_GET['IU-filtercats'] OR $_GET['IU-filtermoves']){
	$BDsumm = $getSumm -> getDatafromtable($_GET['IU-filtercats'],$_GET['IU-filtermoves']);
}else{
	if($_GET['IU-filteruser']){
		$BDsumm = $getSumm -> getDatafromtable($_GET['IU-filtercats'],$_GET['IU-filtermoves']);
	}else{
		$BDsumm = $getSumm -> getSumm();
	}
}

echo json_encode($BDsumm)
?>