Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2015
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. foreach ($userItems_get as $item => $value) {
  2.  
  3. if ($value['prefab'] == 'wearable') {
  4.  
  5. echo $value['name'] . "</br>";
  6.  
  7. echo "<img src=\"{$value['image_inventory']}.png\" width=\"90\" height=\"60\">" . "</br>";
  8.  
  9. if (!isset($value['item_rarity'])) {
  10. $rarity = "common";
  11. } else {
  12. $rarity = $value['item_rarity'];
  13. }
  14.  
  15. echo $rarity . "</br>";
  16.  
  17. foreach ($userItemsLoad as $key => $values) {
  18.  
  19. if ($item == $values['defindex']) {
  20.  
  21. echo $values['id'] . "</br></br>";
  22. break;
  23. }
  24.  
  25. }
  26.  
  27. }
  28.  
  29.  
  30. }
  31.  
  32.  
  33.  
  34. html for the output:
  35.  
  36. <div class="item-container">
  37. <div id="item-box">
  38. <img src="http://lorempixel.com/output/technics-q-c-95-60-9.jpg" alt="">
  39.  
  40. <div id="rarity">
  41. rare
  42. </div>
  43. </div>
  44. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement