This might help

query("SELECT os,hostname,address,ports FROM targets"); foreach($targets as $tar) { echo "\t\n"; if(strtolower($tar['os']) == "windows"){ echo "\t\t\n"; }else if(strtolower($tar['os']) == "linux"){ echo "\t\t\n"; }else{ echo "\t\t\n"; } echo "\t\t\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\n"; } ?>
OS HOSTNAME ADDRESS PORTS
".$tar['hostname']."".$tar['address']."".$tar['ports']."