YOTA
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); echo '

Reservation records:

'; echo '
'; echo "\n"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "\n"; foreach($conn->query("SELECT * FROM activities ORDER BY `id` DESC") as $row) { echo ""; echo ""; if ($row['approved']) echo ""; else echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "\n"; } echo "
IDApprovedOperator CallsignQSOFromToFrequenciesModesSpecial CallsignOperator NameOperator EmailOperator PhoneActions
" . $row['id'] . "
" . $row['operatorCall'] . "
" . $row['qso'] . "
" . $row['fromTime'] . "
" . $row['toTime'] . "
" . $row['frequencies'] . "
" . $row['modes'] . "
" . $row['specialCall'] . "
" . $row['operatorName'] . "
" . $row['operatorEmail'] . "
" . $row['operatorPhone'] . "
"; echo ""; echo ""; echo ""; echo "
\n
\n"; } catch (PDOException $e) { echo "

Error!: " . $e->getMessage() . "

"; } } else { # Bad pass check... if (isset($_SESSION['admin']) && $_SESSION['admin'] == false) echo "Bad credentials!"; # Login form echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; } ?>