• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Topplayers.php

Fu Manchu

Sepultra™
Joined
Jan 28, 2011
Messages
439
Reaction score
9
PHP:
<?php
	$ots = POT::getInstance();
	$ots->connect(POT::DB_MYSQL, connection());
	$SQL = $ots->getDBHandle(); 
	$get = $SQL->query("SELECT name,level FROM players ORDER BY experience DESC LIMIT 1,10");
	$i = 0;
	echo '<table cellspacing="0" cellpadding="3" border="0" width="100%">
    	<tr><td></td><td></td><td align="center"><b>LVL</b></td></tr>';
		foreach($get as $player) {
			$i++;
			echo '<tr>
            	<td width="19">

                	<strong>'.$i.'.</strong>
                </td>
                <td>
                	<a href="'.WEBSITE.'/index.php/character/view/'.$player['name'].'"><strong>'.$player['name'].'</strong></a>
                </td>
                <td align="center">
					<strong>'.$player['level'].'</strong>

                </td>
            </tr>';
		}
	echo '</table>';
?>

I need to make this ignore gms cms and god :S can anyone help me you or just give me the code to stop it from happening and then I figure out where it goes?


Thanks guys!
 
maybe something like this:
PHP:
<?php
    $ots = POT::getInstance();
    $ots->connect(POT::DB_MYSQL, connection());
    $SQL = $ots->getDBHandle(); 
    $get = $SQL->query("SELECT name,level FROM players WHERE group_id > 2 ORDER BY experience DESC LIMIT 1,10");
    $i = 0;
    echo '<table cellspacing="0" cellpadding="3" border="0" width="100%">
        <tr><td></td><td></td><td align="center"><b>LVL</b></td></tr>';
        foreach($get as $player) {
            $i++;
            echo '<tr>
                <td width="19">

                    <strong>'.$i.'.</strong>
                </td>
                <td>
                    <a href="'.WEBSITE.'/index.php/character/view/'.$player['name'].'"><strong>'.$player['name'].'</strong></a>
                </td>
                <td align="center">
                    <strong>'.$player['level'].'</strong>

                </td>
            </tr>';
        }
    echo '</table>';
?>
 
Back
Top