function showIncorrect(){ document.getElementById('ans-incorrect').style.display = 'block'; } function showUnanswered(){ document.getElementById('ans-unanswered').style.display = 'block'; } </script> </head> <body> <?php echo $greettext; $file = 'vocabulary.csv'; $delimiter = ';'; $word_array = getWordArray($file); if ($_SESSION['german'] == 1) { generateWordGerman($word_array); } else { generateWord($word_array); } //var_dump($word_array); /*echo '<table border="1"> <tr><th>Word in English</th><th>Word in German</th></tr> '; foreach($word_array as $w){ echo '<tr><td>'.$w['english'].'</td><td>'.numbered_arr($w['german']).'</td></tr>'; } echo '</table>';*/ function getWordArray($filename) {
} function showIncorrect(){ document.getElementById('ans-incorrect').style.display = 'block'; } function showUnanswered(){ document.getElementById('ans-unanswered').style.display = 'block'; } </script> </head> <body> <?php echo $greettext; $delimiter = ';'; $word_array = getWordArray($_SESSION['file']); if ($_SESSION['german'] == 1) { generateWordGerman($word_array); } else { generateWord($word_array); } //var_dump($word_array); /*echo '<table border="1"> <tr><th>Word in English</th><th>Word in German</th></tr> '; foreach($word_array as $w){ echo '<tr><td>'.$w['english'].'</td><td>'.numbered_arr($w['german']).'</td></tr>'; } echo '</table>';*/ function getWordArray($filename) {