public function getUserId() { $id = $_GET['ads_id']; $ads = new Adverts(); return $ads->UserId($id); }