Jump to content

AFVA | Mitchell

  • Posts

  • Joined

  • Last visited

Profile Information

  • Gender
  • Location
    Melbourne, Australia
  • Interests
    Website Coding, phpVMS Development, Real World Flying, FSX, Modern Warfare 2

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

AFVA | Mitchell's Achievements


Newbie (1/14)



  1. I went through and checked the lines and still no fix. The code for the page: Link Here! Thanks, Mitch
  2. For on of my pages that are separate from phpVMS I want to use data from phpVMS and put it into a table. I have put in this code in the <head> part: <?php require_once("VatsimPHPgenerator.php"); $VatsimPHP=new VatsimPHP; include 'core/codon.config.php'; ?> And I get this error: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at F:\XAMPP\xampp\htdocs\deparr.php:14) in F:\XAMPP\xampp\htdocs\core\codon.config.php on line 40 Anyone know whats wrong?
  3. I am building a website at the moment for my virtual airline. It will be all done in PHP but I need to be pointed in the right direction. 1. What is the best 'framework' to build my site on (e.g Codon, CakePHP etc.) 2. Can I pull data from multiple phpVMS databases and display them on a single page? 3. Can I insert data into multiple phpVMS databases? You may say, why not just use phpVMS? Here is how my CEO wants it... - 'Australian Frontier' has three divisions: Pacific Frontier, Australian Frontier, Australian-Pacific Cargo all going to be separate sites (with the seperate sites powered by phpVMS). - There will be a main site which shows the user about the different VAs, stats for all three etc. and where the user can register to all 3 sites. Thanks in advance
  4. I want to modify: public static function getAircraftInfo($reg) { $reg = DB::escape($reg); return DB::get_row('SELECT * FROM '.TABLE_PREFIX.'aircraft WHERE `registration` ='.$reg ); } so it will return the hours as well.. I have no idea how I am going to this so can someone please provide the code. Thanks, Mitch
  5. Or you can make a different CSS file for the HTML Non-Compatible browsers and do a 'if browser' thingy. I want to use HTML 5 because most of the features you can find in Flash are much easier to make in HTML 5 saving time, money and effort.
  6. I am currently using Firefox 4.0 BETA and HTML 5 does work...mostly but google chrome i have found works best. Those are the 2 browsers that I have found compatible and IE9 should be compatible with it. The reason I want to use HTML 5 to built this new site is because my very fussy CEO wants a very high quality with a good UI, most of the features I need are in HTML 5.
  7. I was watching some stuff on the GoogleDevelopers channel and fell in love with HTML5. But I have a few questions because I have chosen to use HTML 5 to build my virtual airlines new site. 1. What browser (and browser versions) support HTML 5 + CSS 3? 2. Would it be hard to implement it into phpVMS? 3. (Off Topic) When is IE 9 being released? Thanks, Mitch
  8. 2.6 Ghz Intel Core 2 Quad Q6600 ATI HD Radeon 5850 1gb 4gb RAM Partitioned 480 gb (Split into two 240 gb 'hard drives') 500gb HDD Windows XP Professional SP3 CoolerMaster CM 690 II Advanced Microsoft Flight Simulator X I get around 80 frames when flying on VATSIM...
  9. http://forum.phpvms.net/topic/1966-phpvmsbooking-release/
  10. I have been asked by my CEO to create a function that allows the user to register to 3 different sites using ONLY one form. Is it possible to change the code of the default register_mainform.tpl (I re-written all the code from register.php and made it much simpler and also made a new registration form exactly the same as the register_mainform.tpl) to make it so that it posts the data contained in the form to many sites at once. Therefore you get the same data on all three sites without having to fill out 3 registration forms. Thanks in advance, Mitch
  11. I am still getting a blank page... Does the OperationsData::getAircraftInfo($id) $id mean the registration or the actual aircraft id (1,2,3 etc.). WorldACARS sends the data as the registration of the aircraft and not the numeric ID. Updated Code: public function maintence() { $reg = $this->get->reg; $aircraft = $this->getAircraftInfo($reg); echo "$aicraft->totaltime"; }
  12. I'm working one of the new features for WorldACARS that pulls aircraft data from the database, displays it, gets processed by WorldACARS then displays it to the user. For some reason the code I wrote doesn't work: (It pulls data from url, e.g http://localhost/action.php/wacars/maintence?reg=VH-FTW) public function maintence() { $reg = $_GET['reg']; $aicraft = self::getAircraftInfo($reg); echo "$aicraft->totaltime"; } public static function getAircraftInfo($reg) { $reg = DB::escape($reg); return DB::get_row('SELECT * FROM '.TABLE_PREFIX.'aircraft WHERE `registration`='.$reg); } Could someone please tell me whats wrong with it? Thanks, Mitch
  13. Open up Fleet.php and instead of the default FleetInfo() change it to this code: /** * Return all possible information about the fleet * Code by Mitchell W * Enhanced by Stu (stuartpb) * Fleet Table 2.0 Order by Aicraft Type Edit */ public static function FleetInfo() { $sql = 'SELECT a.*, a.name AS aircraft, COUNT(p.pirepid) AS routesflown, SUM(p.distance) AS distance, SEC_TO_TIME(SUM(p.flighttime*60*60)) AS totaltime, AVG(p.distance) AS averagedistance, AVG(p.flighttime) as averagetime FROM '.TABLE_PREFIX.'aircraft a LEFT OUTER JOIN '.TABLE_PREFIX.'pireps p ON (p.aircraft = a.id) GROUP BY a.name'; return DB::get_results($sql); DB::debug(); return $ret; } I have tried to get the last pilot who flew it but I can't seem to get it to work, as soon as I get it working I'll post the code here a conclusion in the two tables, first table of Boeing 737 and the second table all Airbus how can I create this? First Table is (list of all Boeing aircraft's) Boeing B737-300 EI-CHH, total flight time 00:12:50. Located at the airport Cologne Bonn (EDDK). Second Table is (list of all Airbus aircraft's) Airbus A319-100 VP-BBG, total flight time 01:20:15. Located at the airport Munich (EDDM). please help!! I've created this code but, this code show all aircraft's in list, but i needet 2 tabeles! <?php foreach ($fleet as $aircraft) { ?> <?php $airbus = explode("EI", $aircraft->registration); echo $airbus[0];?>, total flight time <?php echo $aircraft->totaltime; ?>.<br> Located at the airport<?php $params = (array('a.registration'=>$aircraft->registration, 'p.accepted'=>PIREP_ACCEPTED)); $pirep = PIREPData::findPIREPS($params); $current_location = $pirep[0]->arricao; $current_location2 = $pirep[0]->arrname; { echo ''.$current_location2.' ('.$current_location.')'; } ?>.<br><br> <?php } ?> Copy the table and move it below the first table and change the airbus stuff to boeing or whatever.
  14. This is the order things will happen: BETA Testing WorldACARS 1.0 Standard Release (For VAs that just want the normal version with standard features) WorldACARS 1.0 Custom Release (Comes with SDK, for VAs that want there own logo, colors, features etc.) The SDK will pretty much be the Visual Studio 2008 project file plus documentation.
  • Create New...