|
I'm running into the same problem while I'm building a test for some of my students. I'm pulling the questions from a database and I'm understanding how to do that, the part after that is what stumps me.
This is my code to get the questions from the database
$query = mysql_query("SELECT question, answer_a, answer_b, answer_c, answer_d, answer_e FROM t_questions");
while($row = mysql_fetch_assoc($query)){
echo $row['question']."<br />".$row['answer_a']."<br />".$row['answer_b']."<br />".$row['answer_c']."<br />".$row['answer_d'];
}
I'm not getting how to echo the results into a form with radio buttons. I appreciate your help.
|