StartVM Posted May 27, 2014 Report Posted May 27, 2014 Hello All! I am trying to develop a table like what is in the image below. I assume it will deal with if statements like if pilot lands KSFO display a checkmark. ELSE display a red x. Quote
Members Vangelis Posted May 27, 2014 Members Report Posted May 27, 2014 You mean if Elseif Elseif Else if Elseif And etc ? Good luck Ps. Have a look at the foreach statement http://www.php.net/manual/en/control-structures.foreach.php Quote
StartVM Posted May 27, 2014 Author Report Posted May 27, 2014 I would do a separate if and else statement for each cell in the table I am thinking of just expanding off of one module that was developed that lists out all the airports in your database. Can anyone provide the exact statement I would need? Quote
flyalaska Posted May 27, 2014 Report Posted May 27, 2014 love the idea of the destination table. Quote
StartVM Posted May 27, 2014 Author Report Posted May 27, 2014 I will get around to this throughout the week I hope to release this as a module by Friday Maybe a tad of community input would get it done faster Quote
freshJet Posted May 27, 2014 Report Posted May 27, 2014 Best way would be to loop through all the airports. If the pilot has a PIREP with the arrival destination (or departure if you really wish) as the airport's ICAO then display the tick, otherwise display the cross. Also, you have Bozeman there twice, one with the correct ICAO and one with Colorado Springs' ICAO Quote
StartVM Posted May 27, 2014 Author Report Posted May 27, 2014 Best way would be to loop through all the airports. If the pilot has a PIREP with the arrival destination (or departure if you really wish) as the airport's ICAO then display the tick, otherwise display the cross. Also, you have Bozeman there twice, one with the correct ICAO and one with Colorado Springs' ICAO Yes, but I don't know where I would pull if USER landed at (arrival) ICAO Quote
StartVM Posted May 28, 2014 Author Report Posted May 28, 2014 Okay I have the code figured out thanks to Collin Biedenkapp from TFDI Design (http://tfdidesign.com). http://pastebin.com/xyndmBna I will put the code in a table layout tomorrow. All I ask is you retain the credits to TFDI as it took him a long time to write this Quote
StartVM Posted May 28, 2014 Author Report Posted May 28, 2014 (edited) REMOVED Edited May 28, 2014 by PilotChase 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.