} } function getUserById($userid){ $sql = 'SELECT * FROM inner_users WHERE user_id = :user_id'; $tb = $this->db->connection->prepare($sql); $tb->execute(array(':user_id'=>$userid)); $this->arrBest = $tb->fetch(PDO::FETCH_ASSOC); return $this->arrBest; } } $getData = new mainpage_query($pagiPage,$limit); if($_GET['IU-filteruser']){ $arrUser = $getData->getUserLogin($_GET['IU-filteruser']); } $arrData = $getData->getDatafromtable($_GET['IU-filtercats'],$_GET['IU-filtermoves']); $count = 0; foreach($arrData as $arrItems){ $arrAll[] = $arrItems; if($_GET['IU-filteruser']){ if(!$arrAll[$count]['ipuser']){$arrAll[$count]['ipuser'] = '******';} $arrAll[$count]['login_id'] = $arrUser['user_login']; $arrAll[$count]['login_search'] = $arrUser['user_login']; $arrAll[$count]['tmlog'] = date("d-m-y H:i:s", strtotime($arrItems['tmlog'])); }else{ if(!$arrAll[$count]['ipuser']){$arrAll[$count]['ipuser'] = '******';} $userLogin = $getData -> getUserById($arrItems['login_id']);