rendered paste body<?include("config.php");echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"admin.css\" />";//$sql="SELECT * FROM subcategory WHERE id = '".$q."'";$count = 0; $varcount = 1;$_GET['d'] = $d;$sql="SELECT * FROM subcategory WHERE $q IN(tag_1, tag_2, tag_3, tag_4, tag_5)";$result = mysql_query($sql);echo "<table border='1px'><tr><th>Subcategory</th></tr>";while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td><input type=\"checkbox\" name=\"subcat_1_" . $d . "_". $varcount ."\" value=\"" . $row['id'] . "\">" . $row['name'] . " subcat_1_".$d."_" . $varcount . "</td>"; echo "</tr>"; $varcount++; }echo "</table>";?>