getPilotEmails.php
309 Bytes
<?php
session_start();
require_once '../classes/realops.php';
$admin = new Admin();
if(!$admin->checkStatus($_SESSION['vatsimID']))
{
echo "Not authorised.";
die();
}
$db = db::connect();
$stmt = $db->getRows("SELECT email FROM tbl_pilots");
foreach($stmt as $row)
{
echo $row['email'] . ", ";
}