This will be your viewset.php file (if you are using the set hack)
<?php include("mytcg/settings.php"); include("$header"); $set = $_GET['set']; ?> <h1>Cards > <?php echo $set ?></h1> Below you will find all of the current card decks arranged alphabetically in categories. The <b>#</b> indicates the number of cards, while the <b>$</b> indicates the worth of the cards. Looking for the upcoming list? Click <a href="upcoming.php">here</a>. Looking for one deck in particular? Try using <i>ctrl/command + f</i> to find it.<br /><br /> <?php for($i=1; $i<=$num_categories; $i++) { $catnum = $i; $select = mysql_query("SELECT * FROM `$table_cards` WHERE `category`='$catnum' AND set1='$set' ORDER BY `category`, `description`"); $count = mysql_num_rows($select); if($count==0) {} else { echo "<h1>$category[$i]</h1>\n"; echo "<table width=\"100%\">\n"; echo "<tr><td width=\"35%\"><b>Deck</b></td><td width=\"60%\"><b>Description</b></td><td width=\"25%\"><b>#/$</b></td></tr>\n"; while($row2=mysql_fetch_assoc($select)) { echo "<tr><td><a href=\"viewcards.php?deck=$row2[filename]\">$row2[deckname]</a></td><td>$row2[description]</td><td>"; if($row[filename]=="member") { $select2 = mysql_query("SELECT * FROM `$table_members` WHERE `membercard`='Yes'"); $memnum = mysql_num_rows($select2); echo "$memnum/0"; } else { echo "$row2[count]/$row2[worth]"; } echo "</td></tr>\n"; } echo "</table>"; echo "<br /><br />\n\n"; } } include("$footer"); ?>