Jump to content

Upcoming arrivals php code[Please delete this topic]


markyboy123

Recommended Posts

Hi there, i have been on this forum to see if i can get code to have "upcoming arrivals" , the table shows but nothing appears in the table even tho i am flying. The code i am using is this:

jZl2136.png

?php
$query = "SELECT * FROM phpvms_schedules ORDER BY arrtime + 0 ASC";
$list = DB::get_results($query);
echo '<h3><span style="font-family:open sans; font-style:italic"><font color="#116ed8">Upcoming</font><font color="#18487f">Arrivals</font></span> - Current Time is '.date('G:i').'</h3>';
echo '<table width="100%" border="1">';
echo '<tr><td>Departure</td><td>Arrival</td><td>Arrival Time</td><td>Aircraft</td><td>Status</td></tr>';
$count = 0;
{
if(($flight->arrtime + 0) > date('G:i'))
{
if($count < 5)
{
$aircraft = OperationsData::getAircraftInfo($flight->aircraft);
echo '<tr><td>'.$flight->depicao.'</td><td>'.$flight->arricao.'</td><td>'.$flight->arrtime.'</td><td>'.$aircraft->fullname.'</td>';
echo '<td>';
if(($flight->arrtime - date('G:i')) <= 1)
{
echo 'Arriving Soon';
}
else
{
echo 'In Flight';
}
echo '</td></tr>';
$count++;
}
}
}
echo '</table>';
?>

I am new to php but i just can't figure it out, i am using the free kacars for now but will be paying for the custom one soon,

Any help will be very much appreciated

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...