View Single Post
Old 11-29-2012, 09:15 PM   PM User | #2
KULP
Regular Coder

 
Join Date: Mar 2012
Posts: 166
Thanks: 5
Thanked 11 Times in 11 Posts
KULP is an unknown quantity at this point
Here is what came to mind for me.

Code:
$allQuestions = mysql_query("SELECT * FROM questions", $connection );

while($oneQuestion = mysql_fetch_array($allQuestions))
{
      echo $oneQuestion["question_text"];
      $allAnswers = //Select everything from answer table with questionID

      while($oneAnswer = mysql_fetch_array($allAnswers)
      {
              echo $oneAnswer["answer_text"];
       }
}
KULP is offline   Reply With Quote