I want to load the data from database to a checkbox list to display and select and here is my code. But it's not working so can anyone correct this code for me?
When i execute this i get the error message as "Parse error: syntax error, unexpected $end in C:\xampp\htdocs\test.php on line 70"
<?php
$section = mysql_query("SELECT DISTINCT Section_Text FROM Section");
while ($row = mysql_fetch_array($section)){
{
echo "<tr><td>";
echo "<input type='checkbox' name='Section' value ='Section_Text'";
echo " />";
echo $row['Section_Text'];
echo "</td></tr><br/>";
}
?>
<br/>tag ? You echo rows for a table, dont use <br/> divider beetween table rows. And please paste the netire file. Also, use distinct(field)