rendered paste body<?php include"header.php"; ?>
<?php require_once('Connections/conn.php');
$me = $_SESSION['MM_userID'];
mysql_select_db($database_conn, $conn);
$query_rsShowMyWrestlers = "SELECT * FROM devtab3 WHERE ownedBy = '$me'";
$rsShowMyWrestlers = mysql_query($query_rsShowMyWrestlers, $conn) or die(mysql_error());
$row_rsShowMyWrestlers = mysql_fetch_assoc($rsShowMyWrestlers);
$totalRows_rsShowMyWrestlers = mysql_num_rows($rsShowMyWrestlers);
?>
<table width="200" border="1">
<?php do { ?>
<tr>
<td><?php echo $row_rsShowMyWrestlers['surname']; ?>, <?php echo $row_rsShowMyWrestlers['firstname']; ?></td>
<td><?php echo $row_rsShowMyWrestlers['type']; ?></td>
<td><?php echo $row_rsShowMyWrestlers['age']; ?></td>
<td><?php echo $row_rsShowMyWrestlers['value']; ?></td>
<td><a href="sack.php?id=<?php echo $row_rsShowMyWrestlers['id']; ?>">Sell</a></td>
</tr>
<?php } while ($row_rsShowMyWrestlers = mysql_fetch_assoc($rsShowMyWrestlers)); ?>
</table>
<?php
mysql_free_result($rsShowMyWrestlers);
?>