Kishshey Posted July 16, 2016 Report Posted July 16, 2016 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 (test.php?flightnum=1533) Can anyone give me a push in the right direction for this. I'd appreciate it a lot. Thank you, Kishshey Quote
Moderators Parkho Posted July 19, 2016 Moderators Report Posted July 19, 2016 (edited) 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> Edited July 19, 2016 by parkho Quote
Kishshey Posted August 3, 2016 Author Report Posted August 3, 2016 Thanks parkho, you've always been a great help. I'll try this one out Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.