Guest User

Untitled

a guest
Jun 18th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <?php
  2.  
  3. $loop=1;
  4.  
  5. while($loop<=$maxitem)
  6. {
  7. $result=mysql_query("SELECT * FROM OutbreakMerch WHERE Location='$locale' AND ItemID='$loop' AND Type='$menu'");
  8.  
  9. if(!$result)
  10. {
  11. }
  12. else
  13. {
  14. while($row=mysql_fetch_array($result))
  15. {
  16. $merch=$row['Item'];
  17. }
  18.  
  19. $result=mysql_query("SELECT * FROM OutbreakItem WHERE Name='$merch'");
  20.  
  21. while($row=mysql_fetch_array($result))
  22. {
  23. $itemname=$row['Name'];
  24. $itemfire=$row['Firepower'];
  25. $itemcost=$row['Cost'];
  26. $itemID=$row['ID'];
  27. $itemtype=$row['Type'];
  28. }
  29.  
  30. include("merchselect.php");
  31. }
  32.  
  33. $loop++;
  34. }
  35.  
  36. ?>
Add Comment
Please, Sign In to add comment