Jump to content

freshJet

Members
  • Posts

    1470
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by freshJet

  1. Been working on this and finally got a result although I don't know how to implement this into the schedules if that's what you want: <?php $min_time = 6; $max_time = 21; $random_hour = rand($min_time,$max_time); $number_formatted = str_pad($random_hour, 4, "0", STR_PAD_BOTH); if ($random_hour < 10){ echo $number_formatted; } else { echo number_format($random_hour,2,"",""); } ?> $min_time is the earliest the flight can leave and max is the latest. Hope this helps
  2. Yeah probably. Mine looks the same as yours but without the version. I'm defo on 2.1.934
  3. http://forum.phpvms.net/topic/5946-vatsim-data-reader/page__view__findpost__p__43380
  4. Yeahhhh. Thanks a lot
  5. In the General Settings menu. My maps just refuse to work and have done for about 2 years. I've even tried re-uploading every file related to it but still nothing.
  6. On my test site I am running the same version as my main site (2.1.934) but the two pages are different. My test site has a field for 'Notify for Updates' and 'Google API Key' whereas my main site doesn't. Could the absence of the Google API field be the reason my maps have never worked?
  7. I think my site is cursed. Nothing works. Here's my full code: <?php $bookings = SchedulesData::GetAllBids(); if (count($lastbids) > 0) { ?> <table width="100%"> <tr> <th align="left"><b>Flight</b></td> <th align="left"><b>Pilot</b></td> <th align="left"><b>From</b></td> <th align="left"><b>To</b></td> <th align="left"><b>Aircraft</b></td> <th align="left"><b>Booked On</b></td> </tr> <?php foreach($lastbids as $lastbid) { $pilot_info = PilotData::GetPilotData($lastbid->pilotid); ?> <tr> <td align="left">FRX<?php echo $lastbid->flightnum; ?></td> <td align="left"><?php echo $pilot_info->firstname.' '.$pilot_info->lastname; ?></td> <td align="left"><?php echo $lastbid->depicao;?></td> <td align="left"><?php echo $lastbid->arricao; ?></td> <td align="left"><?php echo $lastbid->aircraft; ?></td> <td align="left"><?php echo $bid->dateadded;?></td> </tr> <?php } } else { ?> <p style="color:#cccccc; font-size:22px; text-align:center;">No bookings!</p> <?php } ?> </table> I tried $lastbid too...
  8. Stupid me for not noticing that...
  9. I'm not sure what you mean?
  10. But what would the code be?
  11. The reason I don't want it integrated is that it will be used in the FS Kneeboard or on a mobile phone or iPad, Android Tablet etc
  12. Same here that's the reason
  13. Oh I never noticed the tables
  14. OK it will be for a chat system (like live chat). So, here's the process: 1. A login form to display which the pilot would login like he would on the site 2. If correct, he is redirected to the chat page and his username will be displayed as [pilot code] [name] e.g FRX0001 John Doe I don't want to put too much code here.
  15. Oh I see it now. Can we see your frontpage_main.tpl and your news file?
  16. I don't see anything wrong?
  17. Do you mean like: SELECT pilot.username, pilot.password FROM phpvms_pilots ?
  18. And how would I do that?
  19. Adding to this I could do: $codename = bla bla; $password = bla bla again; $users=array(); $users[]=array("$codename","$password"); Would a foreach loop work?
  20. I am creating an external application and I need to incorporate all pilot names, codes and passwords for a chat system. $users=array(); $users[]=array("FRX0001 John Doe","password123"); Above is part of my code. Basically, I need PHP to get the pilot codes, names and passwords to go in that array. And do I use the usual PHP dbconnect?
  21. Thanks Kyle but that just displays them all as 31st December 1969 (311269)
  22. I'm surprised there isn't one actually
  23. Has that flight got a route?
×
×
  • Create New...