Administrators Nabeel Posted October 28, 2010 Administrators Report Share Posted October 28, 2010 ID Name Rank Flights Hours Vatsim ID IVAO Status How do i only have one of them? for each hub there is table like that. Would it be possible so there is only one table with all pilots in just one list? thanks Daniel Read this thread from the beginning, it explains how Quote Link to comment Share on other sites More sharing options...
Daniel Posted October 28, 2010 Report Share Posted October 28, 2010 i don't understand i just need a clean code please or can you point out please thanks Daniel Quote Link to comment Share on other sites More sharing options...
James142 Posted October 28, 2010 Report Share Posted October 28, 2010 In that loop where it shows the pilots, you can do something like if(count($pilots) == 0) { echo 'No pilots based at this airport'; } But the airports that have no pilot based at them are still showing up? Quote Link to comment Share on other sites More sharing options...
Daniel Posted October 28, 2010 Report Share Posted October 28, 2010 does that go in the pilot list.tpl 1 Quote Link to comment Share on other sites More sharing options...
Guest nedra Posted November 14, 2010 Report Share Posted November 14, 2010 My question from above still hasn't been answered... How can I make my pilot_list order by rankid, rather than pilotid? I can't find anywhere with an orderby function, and it's starting to drive me crazy! Quote Link to comment Share on other sites More sharing options...
Guest nedra Posted December 23, 2010 Report Share Posted December 23, 2010 Bump... Please, can anyone help me? 1 Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted December 23, 2010 Administrators Report Share Posted December 23, 2010 Add this to your local.config.php /* For PILOT_ORDER_BY use p.[column_name] [ASC/DESC] */ Config::Set('PILOT_ORDER_BY', 'p.ranklevel DESC'); 1 Quote Link to comment Share on other sites More sharing options...
Guest nedra Posted December 23, 2010 Report Share Posted December 23, 2010 Brilliant! Thanks very much Simpilot! Works like a charm! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.