I am trying to display data in a table. here is what I have so far:
$result = mysql_query("select * from tbl_regist_cube_term_heads where gender = '$selGender' ", $db);
// display all the different courses from tbl_lkp_course_subject in the select list
while ($myrow = mysql_fetch_array($result))
{
printf("<option>%s</option>\n",$myrow["gender"]);
printf("<option>%s</option>\n",$myrow["major"]);
}
of course this produces a jumbled output. I would like this displayed in columns.
$result = mysql_query("select * from tbl_regist_cube_term_heads where gender = '$selGender' ", $db);
// display all the different courses from tbl_lkp_course_subject in the select list
while ($myrow = mysql_fetch_array($result))
{
printf("<option>%s</option>\n",$myrow["gender"]);
printf("<option>%s</option>\n",$myrow["major"]);
}
of course this produces a jumbled output. I would like this displayed in columns.