Jump to content

Option?


Cooper94

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.