Bedankt!
// Selecteer vraag en antwoord
$select=mysql_query("SELECT * FROM questions INNER JOIN answers ON (questions.question_id=answers.question_id) INNER JOIN customers ON (customers.customer_id = answers.customer_id)");
while($result=mysql_fetch_assoc($select)){
echo "Naam: ".$result['customer_name']."<br />";
echo "Vraag: ".$result['question_name']."<br />";
echo "Antwoord: ".$result['answers_name']."<br />";
}
SELECT questions.question_name AS question_name, customers.customer_name AS customer_name
FROM answers
INNER JOIN questions ON questions.question_id = answers.question_id
INNER JOIN customers ON customers.customer_id = answers.customer_id
