Cooper94 Posted April 26, 2009 Share Posted April 26, 2009 <?php if ($client['0'] == 'CYWG_TWR') ?> Say I dont just want CYWG_TWR say I want CYWG_GND and CYWG_DEL how would I make it so it displays more than just CYWG_TWR but also more? So would I use an or statment || ? Thank You Quote Link to comment Share on other sites More sharing options...
Mchl Posted April 26, 2009 Share Posted April 26, 2009 if(in_array($client['0'],array('CYWG_TWR','CYWG_GND','CYWG_DEL'))) Quote Link to comment Share on other sites More sharing options...
Cooper94 Posted April 26, 2009 Author Share Posted April 26, 2009 thank you! Quote Link to comment Share on other sites More sharing options...
Cooper94 Posted April 26, 2009 Author Share Posted April 26, 2009 One more thing please: <?php require_once("VatsimPHPgenerator.php"); $VatsimPHP=new VatsimPHP; $clientlist=$VatsimPHP->pilots(); ?> <TABLE width="80%"> <TR> <TD><B></B></TD> <TD><B></B></TD> <TD><B></B></TD> </TR> <?php echo "<TR>"; echo "<TD>".$clientlist[0]."</TD>"; echo "<TD>".$clientlist[11]." -</TD>"; echo "<TD>".$clientlist[13]."</TD>"; echo "</TR>"; ?> </table> See that grabs everyone from $clientlist but how can I make it select the data... Like say I want it to select that data from only one person? I know I cant do a Select from code so what other options may I have? Thank You Quote Link to comment Share on other sites More sharing options...
Cooper94 Posted April 26, 2009 Author Share Posted April 26, 2009 Bump 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.