Jump to content

[Solved] Pilot Roster


Daniel

Recommended Posts

Hey,

Just noticed that I had edited something on our roster and a pilot registered PAV079 Chris Odyssey and he is not in order... any ideas?

http://www.pashairvirtual.co.uk/index.php/Listing

the part I had edited

<td><?php
$fieldvalue = PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID');
if($fieldvalue != '1')
{
  echo '<a href="http://www.vataware.com/pilot.cfm?cid='.$fieldvalue.'" target="_blank"><center><img src="'.SITE_URL.'/images/vatsim.gif" alt="Vatsim ID" /></center></a>';
}
else
{
echo '<center><img src="/images/novat.png" width="20" height="18" border="0"/></center></a>';
}
?>
<?php
}
?>
</td>

Link to comment
Share on other sites

  • Administrators

It is how the data is coming back from the database. You have probably deleted a pilot along the way and the datbase has repopulated that field with another line of data which puts it out of line. You can set how you want your pilots sorted in the local.config.php file.

/* For PILOTS_ORDER_BY use p.[column_name] [ASC/DESC] */
Config::Set('PILOTS_ORDER_BY', 'p.pilotid DESC');

Link to comment
Share on other sites

It is how the data is coming back from the database. You have probably deleted a pilot along the way and the datbase has repopulated that field with another line of data which puts it out of line. You can set how you want your pilots sorted in the local.config.php file.

/* For PILOTS_ORDER_BY use p.[column_name] [ASC/DESC] */
Config::Set('PILOTS_ORDER_BY', 'p.pilotid DESC');

Thanks a lot sim pilot

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