[rezolvat]Problema Staff TOP15

Totalitatea subiectelor care nu respectă regulamentul vor fi stocate aici.
Închis
Avatar utilizator
Style04
Nivel 2

Nivel 2
Mesaje: 273
Membru din: 01 Aug 2014, 23:28
Server: xGamer
Regat: Jinno
Aprecieri: 1  
Mulţumiri: 1  
 Contact:
Medalii

Salut J4M am si eu o problema , cum fac ca GM-ul sa nu mai fie aratat in TOP15 ? As dorii sa stiu si la breasla .

Multumesc !
Avatar utilizator
Ibrahimović
Nivel 6

Nivel 6
Mesaje: 1108
Membru din: 08 Sep 2014, 21:20
Aprecieri: 0
Mulţumiri: 48  
 Contact:
Medalii

Pui asta .

Cod: Selectaţi tot

"SELECT * FROM player WHERE name NOT LIKE '[OwM]%' AND name NOT LIKE '[GA]%' ORDER BY level DESC";
$sql = "SELECT
    *
    FROM
  player
  WHERE name NOT LIKE '[CoMa]%' AND name NOT LIKE '[GA%]' AND name NOT LIKE '[GM%]' AND name NOT LIKE '[BA%]' AND name NOT LIKE '[SGM%]' ORDER BY level DESC";
Imediat dupa ce scrie

Cod: Selectaţi tot

include ("config.php");
Sau foloseşte scriptul ăsta

Cod: Selectaţi tot

include ("config.php");

"SELECT * FROM player WHERE name NOT LIKE '[OwM]%' AND name NOT LIKE '[GA]%' ORDER BY level DESC";
$sql = "SELECT
    *
    FROM
  player
  WHERE name NOT LIKE '[CoMa]%' AND name NOT LIKE '[GA%]' AND name NOT LIKE '[GM%]' AND name NOT LIKE '[BA%]' AND name NOT LIKE '[SGM%]' ORDER BY level DESC";
      $i = "0" ;
   $ergebnis = mysql_query($sql);
 $ergebnis = mysql_query($sql);
while($row = mysql_fetch_object($ergebnis))
   {
   $i = $i + 1 ;
   echo "
   <center><table border=0>
  <tr>
    <th width="80"><font color=orangered>$i</font></th>
    <th width="200"><font color=snow>$row->name</font></th>
    <th width="200"><font color=maroon>$row->exp</font></th>
    <th width="200"><font color=orangered>$row->level</font></th>
  </tr>
</table></center>";
   }

echo "</td>
</tr>
</table>
</td>
</tr>
</table>
<tr>
</td>
</tr>
</table>
</body>
</html>" ;
?>
  </tr>
  </table></center><hr>
        </tbody>
        </table>
        </body>
        </div>
        </div>
        </div>
        </div>
        <div class="clr"></div>
        <div id="content_down">
        <div id="content_down_left">
        </div>
        </div>
        <div id="container2">
        <div id="user_modules2">
        <div id="user5">
        </div>
        <div id="user6">
        </div>
        </div>

        </body>
Avatar utilizator
Style04
Nivel 2

Nivel 2
Mesaje: 273
Membru din: 01 Aug 2014, 23:28
Server: xGamer
Regat: Jinno
Aprecieri: 1  
Mulţumiri: 1  
 Contact:
Medalii

Ibrahimović scrie:Pui asta .

Cod: Selectaţi tot

"SELECT * FROM player WHERE name NOT LIKE '[OwM]%' AND name NOT LIKE '[GA]%' ORDER BY level DESC";
$sql = "SELECT
    *
    FROM
  player
  WHERE name NOT LIKE '[CoMa]%' AND name NOT LIKE '[GA%]' AND name NOT LIKE '[GM%]' AND name NOT LIKE '[BA%]' AND name NOT LIKE '[SGM%]' ORDER BY level DESC";
Imediat dupa ce scrie

Cod: Selectaţi tot

include ("config.php");
Sau foloseşte scriptul ăsta

Cod: Selectaţi tot

include ("config.php");

"SELECT * FROM player WHERE name NOT LIKE '[OwM]%' AND name NOT LIKE '[GA]%' ORDER BY level DESC";
$sql = "SELECT
    *
    FROM
  player
  WHERE name NOT LIKE '[CoMa]%' AND name NOT LIKE '[GA%]' AND name NOT LIKE '[GM%]' AND name NOT LIKE '[BA%]' AND name NOT LIKE '[SGM%]' ORDER BY level DESC";
      $i = "0" ;
   $ergebnis = mysql_query($sql);
 $ergebnis = mysql_query($sql);
while($row = mysql_fetch_object($ergebnis))
   {
   $i = $i + 1 ;
   echo "
   <center><table border=0>
  <tr>
    <th width="80"><font color=orangered>$i</font></th>
    <th width="200"><font color=snow>$row->name</font></th>
    <th width="200"><font color=maroon>$row->exp</font></th>
    <th width="200"><font color=orangered>$row->level</font></th>
  </tr>
</table></center>";
   }

echo "</td>
</tr>
</table>
</td>
</tr>
</table>
<tr>
</td>
</tr>
</table>
</body>
</html>" ;
?>
  </tr>
  </table></center><hr>
        </tbody>
        </table>
        </body>
        </div>
        </div>
        </div>
        </div>
        <div class="clr"></div>
        <div id="content_down">
        <div id="content_down_left">
        </div>
        </div>
        <div id="container2">
        <div id="user_modules2">
        <div id="user5">
        </div>
        <div id="user6">
        </div>
        </div>

        </body>
Unde trebuie sa atasez scriptul ? !
Avatar utilizator
Mikkelsen
Mister Just4Metin

Mister Just4Metin
Mesaje: 2353
Membru din: 06 Mar 2014, 23:53
Server: ETH
Regat: Jinno
Aprecieri: 11  
Mulţumiri: 40  
 Contact:
Medalii

Îl urci în FTP-ul site-ului în fişierul unde configurezi site-ul cu datele de la site,acolo trebuie să fie un fişier cu numele jucători.php sau dacă nu faci tu unul.
Avatar utilizator
Style04
Nivel 2

Nivel 2
Mesaje: 273
Membru din: 01 Aug 2014, 23:28
Server: xGamer
Regat: Jinno
Aprecieri: 1  
Mulţumiri: 1  
 Contact:
Medalii

Rezolvat T/C Multumesc !
Avatar utilizator
Mikkelsen
Mister Just4Metin

Mister Just4Metin
Mesaje: 2353
Membru din: 06 Mar 2014, 23:53
Server: ETH
Regat: Jinno
Aprecieri: 11  
Mulţumiri: 40  
 Contact:
Medalii

Topic închis.
Marcat ca şi rezolvat!
Închis

Înapoi la “Arhivă”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 37 vizitatori