예제 #1
0
파일: show.php 프로젝트: cpausmit/Tapas
    $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 '&nbsp;&nbsp; 1: ';
    $task1->printTaTask();
    // print '<br>';
    $task2 = new TeachingTask($pref2);
    print '&nbsp;&nbsp; 2: ';
    $task2->printTaTask();
    // print '<br>';
    $task3 = new TeachingTask($pref3);
    print '&nbsp;&nbsp; 3: ';
    $task3->printTaTask();
    // print '<br>';
    print '</p> ';
}
if ($empty) {
    print 'EMPTY.</p>';
}
print '</article>' . "\n";
include "app/views/ta/footer.php";