Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach ($userItems_get as $item => $value) {
- if ($value['prefab'] == 'wearable') {
- echo $value['name'] . "</br>";
- echo "<img src=\"{$value['image_inventory']}.png\" width=\"90\" height=\"60\">" . "</br>";
- if (!isset($value['item_rarity'])) {
- $rarity = "common";
- } else {
- $rarity = $value['item_rarity'];
- }
- echo $rarity . "</br>";
- foreach ($userItemsLoad as $key => $values) {
- if ($item == $values['defindex']) {
- echo $values['id'] . "</br></br>";
- break;
- }
- }
- }
- }
- html for the output:
- <div class="item-container">
- <div id="item-box">
- <img src="http://lorempixel.com/output/technics-q-c-95-60-9.jpg" alt="">
- <div id="rarity">
- rare
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement