<style>
body { background-color: #eeeeee; }
border:0
valign="top"
</style>
<?php
require_once("VatsimPHPgenerator.php");
$VatsimPHP=new VatsimPHP;
$pilotlist=$VatsimPHP->pilots();
$flag=0;
$found = false;
foreach ($p in $pilotlist) {
$m = substr($p[11],0,4)."|".substr($p[13],0,4);
if (preg_match("/TTCP|TGPY|TBPB/", $m)) {
printf("<tr><th>%s</th><td>%s</td><td>-%s</td></tr>", $p[0], $p[11], $p[13]);
$found = true;
}
}
if (!$found) print("<tr><td>There are currently no ongoing flights within the Piarco airspace.</td></tr>");
?>
That is my PHP script. I get the following error:
"Parse error: syntax error, unexpected T_STRING in /home/colst0/public_html/piarco/piarcotest.php on line 12"
I've been cracking away at this for a little over a week, and am lost. Anyone have a suggestion?