$this->arrBest = $tb->fetch(PDO::FETCH_ASSOC); return $this->arrBest; } function getDataGrps($grpLevel){ $sql = 'SELECT * FROM levels WHERE level_id = :level'; $tb = $this->db->connection->prepare($sql); $tb->execute(array(':level'=>$grpLevel)); $this->arrBest = $tb->fetch(PDO::FETCH_ASSOC); return $this->arrBest; } } $getData = new mainpage_query(); $arrLogin = $getData ->getAllfromtable($login_request,$pass_write,$field_inner_levels,$salt,$field_inner_surname,$field_inner_name); $getter = $getData ->getDatafromtable($login_request); $getterGrp = $getData ->getDataGrps($getter['user_level']); ?> <!-- Rezult adding to the DB Showing --> <div class="content-wrapper-alias" style="display: block;"> <h1 class="result-header">Рузультат добавления в базу данных</h1> <div class="result-blocks"><b>id пользователя: </b><b style="color:#0044cc"><?php echo $getter['user_id']; ?> </b></div> <div class="result-blocks"><b>username: </b><?php echo $getter['user_login']; ?> </div> <div class="result-blocks"><b>Фамилия: </b><?php