Administrators Nabeel Posted October 28, 2010 Administrators Report 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
Daniel Posted October 28, 2010 Report Posted October 28, 2010 i don't understand i just need a clean code please or can you point out please thanks Daniel Quote
James142 Posted October 28, 2010 Report 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
Daniel Posted October 28, 2010 Report Posted October 28, 2010 does that go in the pilot list.tpl 1 Quote
Guest nedra Posted November 14, 2010 Report 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
Guest nedra Posted December 23, 2010 Report Posted December 23, 2010 Bump... Please, can anyone help me? 1 Quote
Administrators simpilot Posted December 23, 2010 Administrators Report 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
Guest nedra Posted December 23, 2010 Report Posted December 23, 2010 Brilliant! Thanks very much Simpilot! Works like a charm! Quote
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.