Hello,
I need to create a page that will show the live flight information with the ACARS data, for a specific Flight Number
I also need the ability to GET the flight number from the url (t_est.php?flightnum=1533_)
Can anyone give me a push in the right direction for this. I’d appreciate it a lot.
Thank you,
Kishshey
Parkho
2
Inside your module function create a variable to get the number from url passed through submission of the form.
public function whatever()
{
$var = $_GET['name of the form'];
}
Then use your variable to pass it to ACARS DATA matching the flight number
$sql="SELECT * FROM phpvms_acarsdata WHERE flightnumber = '$var'";
$flight = DB::get_row($sql);
Then use $flight to show the columns
<table>
<tr>
<td>Flight Number</td>
<td><?php echo $flight->flightnumber ;?></td>
</tr>
</table>
Thanks parkho, you’ve always been a great help.
I’ll try this one out