<!-- Таблица : выйгрыщ -->
<?php
$result = $link->query('SELECT * FROM `last_winners` WHERE `steamid`="'.$id.'" ORDER BY `id` DESC');
while ($user = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
?>
<div class="container-profile-open-case util-container-style container-profile-block">
<div class="title-profile-open-case b-title">Открытые кейсы</div>
<div class="grid-row grid-row-small">
<div class="grid-padding grid-left grid-padding-small grid-column-weapon 3">
<a target="_blank" rel="nofollow" href="http://steamcommunity.com/market/search?q=USP-S%20%7C%20%D0%9A%D0%B0%D0%BC%D1%83%D1%84%D0%BB%D1%8F%D0%B6" class="b-weapon b-weapon--is-restricted b-weapon--is-list">
<div class="b-action-profile b-action-profile--steam js-action-profile" data-remodal-popup-id="popup-open-case" data-remodal-popup-type="steam" data-type="restricted" data-weapon="USP-S" data-weapon-name="Камуфляж" data-icon="https://steamcommunity-a.akamaihd.net/economy/image/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpoo6m1FBRp3_bGcjhQ09Svq5OCkvDxDLnDl31e18h0juDU-MKi2AKwrRZrZW_7d9DBdlI5aA2GqFbrybq6jZO1vsvBwCZluycjsy2OgVXp1tNqwaiB" data-id="8494901418" data-price="301.59"></div>
<div class="weapon__container">
<div class="weapon__image">
<div class="weapon__image-table">
<div class="weapon__image-table-cell">
<img src="<?echo $user['item_img'];?>" alt="">
</div>
</div>
</div>
<div class="weapon__data">
<div class="weapon__title"><?echo $user['item_name'];?></div>
</div>
</div>
</a>
</div>
</div>
</div>
<?php
}
?>
</tbody></table></div>
</div>
<!-- Таблица : выйгрыщ -->
<?php
$result = $link->query('SELECT * FROM `last_winners` WHERE `steamid`="'.$id.'" ORDER BY `id` DESC');
?>
<div class="container-profile-open-case util-container-style container-profile-block">
<div class="title-profile-open-case b-title">Открытые кейсы</div>
<?php while ($user = mysqli_fetch_array($result, MYSQLI_ASSOC)) { ?>
<div class="grid-row grid-row-small">
<div class="grid-padding grid-left grid-padding-small grid-column-weapon 3">
<a target="_blank" rel="nofollow" href="http://steamcommunity.com/market/search?q=USP-S%20%7C%20%D0%9A%D0%B0%D0%BC%D1%83%D1%84%D0%BB%D1%8F%D0%B6" class="b-weapon b-weapon--is-restricted b-weapon--is-list">
<div class="b-action-profile b-action-profile--steam js-action-profile" data-remodal-popup-id="popup-open-case" data-remodal-popup-type="steam" data-type="restricted" data-weapon="USP-S" data-weapon-name="Камуфляж" data-icon="https://steamcommunity-a.akamaihd.net/economy/image/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpoo6m1FBRp3_bGcjhQ09Svq5OCkvDxDLnDl31e18h0juDU-MKi2AKwrRZrZW_7d9DBdlI5aA2GqFbrybq6jZO1vsvBwCZluycjsy2OgVXp1tNqwaiB" data-id="8494901418" data-price="301.59"></div>
<div class="weapon__container">
<div class="weapon__image">
<div class="weapon__image-table">
<div class="weapon__image-table-cell">
<img src="<?= $user['item_img'];?>" alt="">
</div>
</div>
</div>
<div class="weapon__data">
<div class="weapon__title"><?= $user['item_name'];?></div>
</div>
</div>
</a>
</div>
</div>
<?php
}
?>
</div>
</tbody></table></div>
</div>