Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. if (isset($_POST['slot1'])) {
  2. $token= mysql_real_escape_string($_POST['token']);
  3. $tokenn = strip_tags($token);
  4.  
  5. $row28 = mysqli_query($link,"SELECT * FROM market WHERE id='".$tokenn."");
  6. $row27 = mysqli_fetch_array($row28);
  7.  
  8.  
  9.  
  10.  
  11.  
  12. if ($row28['currency'] >= $row28['price']) {
  13.  
  14.  
  15.  
  16. }
  17.  
  18. <table class="reg-box4">
  19. <tr>
  20. <th width="20%">Item</th>
  21. <th width="20%">Stats</th>
  22. <th width="20%">Seller</th>
  23. <th width="20%">Price</th>
  24. <th width="20%">Options</th>
  25. </tr>
  26.  
  27.  
  28.  
  29. <?php
  30.  
  31. $result99 = mysqli_query($link,"SELECT * FROM market WHERE type='".$_GET['type']."' ORDER BY time");
  32. while($row26 = mysqli_fetch_array($result99))
  33. {
  34. $idd= mysql_real_escape_string($row26['id']);
  35. $iddd = strip_tags($idd);
  36.  
  37. ?>
  38.  
  39.  
  40. <tr>
  41. <td><?php echo $row26['item']; ?>+<?php echo $row26['plus']; ?></td>
  42. <td>Attack: <?php echo $row26['atk']; ?></br>Defence: <?php echo $row26['def']; ?></br> Health: <?php echo $row26['hp']; ?></br>Speed: <?php echo $row26['speed']; ?></td>
  43. <td><?php echo $row26['user']; ?></td>
  44. <td><?php echo $row26['price']; ?> <?php echo $row26['currency']; ?></td>
  45. <form name="slot1" action="" method="post">
  46. <td>
  47. <input type="hidden" name="token" id="token" value="<?php echo $iddd ; ?>" />
  48. <input type="submit" class="mapbutton2" value="Buy" name="slot1">
  49. </form>
  50. <?php
  51. if ($row['username'] == $row26['user']) {
  52. ?>
  53. <form name="toss" action="" method="post">
  54. <input type="hidden" name="token" id="token" value="<?php echo $iddd ; ?>" />
  55. <input type="submit" class="mapbutton2" value="Remove" name="toss">
  56. </form>
  57. <?php
  58. }
  59. ?>
  60. </td>
  61. </tr>
  62.  
  63.  
  64.  
  65. <?php
  66.  
  67. }
  68.  
  69. ?>
  70.  
  71. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement