Code:
<div style="background-color:#fffcc0; font-family:Arial, Helvetica, sans-serif; color:#000000; padding:5px; margin:auto; width:400px; height:auto;">
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("studentrecord", $con);
$result = mysql_query("SELECT * FROM miscellaneous");
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<th scope='row' class='spec'>" . '<input name="selector[]" type="checkbox" value="'.$row['Misc_Code'].'">' . "</th>";
// echo "<th scope='row' class='spec'>" . '<input name="selector[]" type="checkbox" value="'.$row['Misc_Code'].'">' . "</th></br>";
echo " <td>" . $row['Misc_Code'] . "</td></br>";
echo "</tr>";
}
echo "</table>";
mysql_close($con);
?>
</div>
Comment