Oto zapytanie
$gracz to nick pobierany z GET'a w formularzu.
I dalej pojawia się problem:
{ { } }
Jeśli wpisze tak to wyświetla Gold vip.
Proszę o podsunięcie pomysły w jaki sposub sprawdzać czy jest wpisane 1 2 albo nic.
{ { } }
require_once('config.php'); $gracz = $_GET['nick']; { echo '<td align="center" class="box" width="150"><font class="typstat1">Respekt</font><br><font class="typstat2">'.$txt['Respekt'].'</font></td>'; echo '<td align="center" class="box" width="150"><font class="typstat1">Kasa</font><br><font class="typstat2">'.$txt['Kasa'].' $</font></td>'; echo '<td align="center" class="box" width="150"><font class="typstat1">W banku</font><br><font class="typstat2">'.$txt['Bank'].' $</font></td>'; echo '<td align="center" class="box" width="150"><font class="typstat1">Kicków</font><br><font class="typstat2">'.$txt['Kickow'].'</font></td>'; echo '<td align="center" class="box" width="150"><font class="typstat1">Banów</font><br><font class="typstat2">'.$txt['Banow'].'</font></td>'; echo '<td align="center" class="box"><font class="typstat1">Wygrane WG: </font><font class="typstat2">'.$txt['WinsWG'].'</font><br>'; echo '<font class="typstat1">Wygrane RACE: </font><font class="typstat2">'.$txt['WinsRACE'].'</font><br>'; echo '<font class="typstat1">Wygrane CH: </font><font class="typstat2">'.$txt['WinsCH'].'</font><br>'; echo '<font class="typstat1">Wygrane DR: </font><font class="typstat2">'.$txt['WinsDR'].'</font><br>'; echo '<font class="typstat1">Wygrane LB: </font><font class="typstat2">'.$txt['WinsLB'].'</font><br>'; echo '<font class="typstat1">Wygrane ST: </font><font class="typstat2">'.$txt['WinsST'].'</font><br>'; echo '<font class="typstat1">Wygrane HAY: </font><font class="typstat2">'.$txt['WinsHAY'].'</font><br>'; echo '<font class="typstat1">Wygrane SS: </font><font class="typstat2">'.$txt['WinsSS'].'</font><br>'; echo '<font class="typstat1">Wygrane UT: </font><font class="typstat2">'.$txt['WinsUT'].'</font></td><br>'; } switch ($wynik2[Typ]) // tylko co tu?? { case 1: break; case 2: break; default: break; } } else { } } ?>
switch ($txt2['Typ']) // tylko co tu?? { case 1: break; case 2: break; default: break; } }
default: break;
{ { switch ($txt2['Typ']) { case 1: break; case 2: break; default: break; } } } else { }
$query = 'SELECT SUM(Respekt) AS suma FROM gracze';