Php 此用户搜索列表中有什么问题
如何实现用户列表搜索,如果值为0,用户将不会被列出?用户上列出的必须是链接Php 此用户搜索列表中有什么问题,php,Php,如何实现用户列表搜索,如果值为0,用户将不会被列出?用户上列出的必须是链接 // If more than one player to show names List if (count($data) > 1 && !isset($_GET['linkki'])) { foreach($data as $pelaaja) { print("<a href=\"".$nykynen_osote_tahan_filuun."?haku=PE&
// If more than one player to show names List
if (count($data) > 1 && !isset($_GET['linkki'])) {
foreach($data as $pelaaja) {
print("<a href=\"".$nykynen_osote_tahan_filuun."?haku=PE&nimi=".$pelaaja->nickname."\">".$pelaaja->nickname."</a>"); // Linkki hakuun print
}
} else {
// Print all the information the player if the value is not 0
$pelaaja_info = $api->get('wot/account/info', array('account_id'=>$data[0]->{'account_id'}));
foreach($pelaaja_info as $pelaaja_i) {
// Does not print anything if the player is just a game 0
if ($pelaaja_i->statistics->all->battles == 0) {
print ($data[0]->nickname);
} else {
print("<span class=\"nick ");
print("\">");
print($data[0]->nickname);
print(" [");
// THIS NAME OF THE CLAN
print("] ");
print("</span>");
print("<br/>");
//如果有多个玩家显示姓名列表
if(count($data)>1&&!isset($\u GET['linkki'])){
foreach(数据为$pelaaja){
打印(“”;//Linkki hakuun打印
}
}否则{
//如果值不是0,则打印播放机的所有信息
$pelaaja_info=$api->get('wot/account/info',array('account_id'=>$data[0]->{'account_id'}));
foreach($pelaaja_信息为$pelaaja_i){
//如果玩家只是游戏0,则不打印任何内容
如果($pelaaja_i->statistics->all->battles==0){
打印($data[0]->昵称);
}否则{
打印(“”);
打印($data[0]->昵称);
打印(“[”);
//这个家族的名字
打印(“]”);
打印(“”);
打印(
);
您能否更具体地说明您的情况以及您需要什么作为最终要求,我可以,但您想知道更多什么?您能否更具体地说明您的情况以及您需要什么作为最终要求,我可以,但您想知道更多什么?