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 Link to comment https://forums.phpfreaks.com/topic/155697-solved-array/ 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'))) Link to comment https://forums.phpfreaks.com/topic/155697-solved-array/#findComment-819523 Share on other sites More sharing options...
Cooper94 Posted April 26, 2009 Author Share Posted April 26, 2009 thank you! Link to comment https://forums.phpfreaks.com/topic/155697-solved-array/#findComment-819527 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 Link to comment https://forums.phpfreaks.com/topic/155697-solved-array/#findComment-819660 Share on other sites More sharing options...
Cooper94 Posted April 26, 2009 Author Share Posted April 26, 2009 Bump Link to comment https://forums.phpfreaks.com/topic/155697-solved-array/#findComment-819684 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.