Jump to content

Recommended Posts

It isnt showing all of the flights I have booked is there something I am doing wrong?

<?php
session_start();
include 'data.php';
$result = mysql_query("select * from book WHERE username = '{$_SESSION['username']}'");
$num = mysql_num_rows($result);
$row = mysql_fetch_assoc($result);
?>
<form action="http://www.republicv.org/site1/options.php?content=pirep" method="post">
<ul><li>
If you would like to file a manual report please make sure the flight has been flown on vatsim or it will not be accepted. If you can not run our Acars System than you may contact the VP of Corparte Development at [email protected], and tell him the reason of this issue. Manual reports will be only accpeted as a last resort!</ul></li>
<table width=100%>
<tr><td colspan=2 align=center>
<select name=flight onchange="window.open(this.options[this.selectedIndex].value,'_top')">
<option>No Booked Flights</option>
<option><? echo $row['flightnum'] ?></option>
</td></tr>

Link to comment
https://forums.phpfreaks.com/topic/145300-option/
Share on other sites

try tihs

 

<?php

session_start();

include 'data.php';

$result = mysql_query("select * from book WHERE username = '{$_SESSION['username']}'");

$num = mysql_num_rows($result);

 

?>

<form action="http://www.republicv.org/site1/options.php?content=pirep" method="post">

<ul><li>

If you would like to file a manual report please make sure the flight has been flown on vatsim or it will not be accepted. If you can not run our Acars System than you may contact the VP of Corparte Development at [email protected], and tell him the reason of this issue. Manual reports will be only accpeted as a last resort!</ul></li>

<table width=100%>

<tr><td colspan=2 align=center>

<select name=flight onchange="window.open(this.options[this.selectedIndex].value,'_top')">

<option>No Booked Flights</option>

 

 

<option><?

while ($row = mysql_fetch_array($result))

{

echo $row['flightnum'];

}?></option>

</td></tr>

Link to comment
https://forums.phpfreaks.com/topic/145300-option/#findComment-762769
Share on other sites

this is what u need.

 

<?php
session_start();
include 'data.php';
$result = mysql_query("select * from book WHERE username = '{$_SESSION['username']}'");
$num = mysql_num_rows($result);

?>
<form action="http://www.republicv.org/site1/options.php?content=pirep" method="post">
<ul><li>
If you would like to file a manual report please make sure the flight has been flown on vatsim or it will not be accepted. If you can not run our Acars System than you may contact the VP of Corparte Development at [email protected], and tell him the reason of this issue. Manual reports will be only accpeted as a last resort!</ul></li>
<table width=100%>
<tr><td colspan=2 align=center>
<select name=flight onchange="window.open(this.options[this.selectedIndex].value,'_top')">
<option>No Booked Flights</option>


<option><?
while ($row = mysql_fetch_array($result))
{
echo $row['flightnum']<?php
session_start();
include 'data.php';
$result = mysql_query("select * from book WHERE username = '{$_SESSION['username']}'");
$num = mysql_num_rows($result);

?>
<form action="http://www.republicv.org/site1/options.php?content=pirep" method="post">
<ul><li>
If you would like to file a manual report please make sure the flight has been flown on vatsim or it will not be accepted. If you can not run our Acars System than you may contact the VP of Corparte Development at [email protected], and tell him the reason of this issue. Manual reports will be only accpeted as a last resort!</ul></li>
<table width=100%>
<tr><td colspan=2 align=center>
<select name=flight onchange="window.open(this.options[this.selectedIndex].value,'_top')">
<option>No Booked Flights</option>


<?
while ($row = mysql_fetch_array($result))
{
echo "!<option>".$row['flightnum']."</option>";
}?>

 

Link to comment
https://forums.phpfreaks.com/topic/145300-option/#findComment-762869
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.