Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($_POST['slot1'])) {
- $token= mysql_real_escape_string($_POST['token']);
- $tokenn = strip_tags($token);
- $row28 = mysqli_query($link,"SELECT * FROM market WHERE id='".$tokenn."");
- $row27 = mysqli_fetch_array($row28);
- if ($row28['currency'] >= $row28['price']) {
- }
- <table class="reg-box4">
- <tr>
- <th width="20%">Item</th>
- <th width="20%">Stats</th>
- <th width="20%">Seller</th>
- <th width="20%">Price</th>
- <th width="20%">Options</th>
- </tr>
- <?php
- $result99 = mysqli_query($link,"SELECT * FROM market WHERE type='".$_GET['type']."' ORDER BY time");
- while($row26 = mysqli_fetch_array($result99))
- {
- $idd= mysql_real_escape_string($row26['id']);
- $iddd = strip_tags($idd);
- ?>
- <tr>
- <td><?php echo $row26['item']; ?>+<?php echo $row26['plus']; ?></td>
- <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>
- <td><?php echo $row26['user']; ?></td>
- <td><?php echo $row26['price']; ?> <?php echo $row26['currency']; ?></td>
- <form name="slot1" action="" method="post">
- <td>
- <input type="hidden" name="token" id="token" value="<?php echo $iddd ; ?>" />
- <input type="submit" class="mapbutton2" value="Buy" name="slot1">
- </form>
- <?php
- if ($row['username'] == $row26['user']) {
- ?>
- <form name="toss" action="" method="post">
- <input type="hidden" name="token" id="token" value="<?php echo $iddd ; ?>" />
- <input type="submit" class="mapbutton2" value="Remove" name="toss">
- </form>
- <?php
- }
- ?>
- </td>
- </tr>
- <?php
- }
- ?>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement