i created a database (Questionnaires)
i also create two tables (Questions and Answers)
i successfully display the questions randomly but my problem is i cannot connect the answers according to its primary ID
here is my code
mysql_select_db("questionaires", $con);
$result = mysql_query("Select * from Answers where AnswerID = {$row['QuestionID']} order by AnswerID asc");
while($row = mysql_fetch_array($result))
{
echo $row['Answers'];
echo "<br/>";
}
i dont know if the syntax is correct..