$errNum = mysqli_errno($link); $errMsg = mysqli_error($link); print " ERROR - could not register selection: ErrNo=" . $errNum . ": " . $errMsg . "\n"; exit; } $statement->bind_result($Email, $pref1, $pref2, $pref3); $empty = true; print 'Your registered TA preferences are:'; print ' '; while ($statement->fetch()) { $empty = false; print '</p><p>'; $task1 = new TeachingTask($pref1); print ' 1: '; $task1->printTaTask(); // print '<br>'; $task2 = new TeachingTask($pref2); print ' 2: '; $task2->printTaTask(); // print '<br>'; $task3 = new TeachingTask($pref3); print ' 3: '; $task3->printTaTask(); // print '<br>'; print '</p> '; } if ($empty) { print 'EMPTY.</p>'; } print '</article>' . "\n"; include "app/views/ta/footer.php";