• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

PHP, Fetching highscores, how it works?

slavi

#define SLAVI32 _WIN32
Senator
Joined
Sep 9, 2015
Messages
681
Solutions
11
Reaction score
561
GitHub
slavidodo
Hello Guys:cool:
___________:

I was wondering to create something new :eek:
jCzoGYT.png


But i stopped at a point, fetching high-scores is not working so good, but it don't sort them.
gbFbUTOb.jpg

so i wish someone helps me making a script.

The script I am using is :
PHP:
<?php
    include 'connect.php';
   
    $query = "SELECT level FROM `players`;";
    $result = mysql_query($query, $connection);
    $nexterrow = mysql_num_rows($result);
    if($nexterrow) {
        echo '<table cellpadding="0" cellspacing="0" class="db-table">';
        sort($nexterrow);
        while($row = mysql_fetch_row($result)) {
            echo '<tr>';
            foreach($row as $key=>$value) {
                echo '<td>'.$value.'</td>';
            }
            echo '</tr>';
        }
        echo '</table><br />';
    }
?>
 
And what's wrong ?

If the problem is sorting, just change your query to:

PHP:
$query = "SELECT level FROM `players` ORDER BY level DESC;";
or
PHP:
$query = "SELECT level FROM `players` ORDER BY level ASC;";


--side note

Is lastdeath some kind of AAC engine ?
 
If the problem is sorting, just change your query to:

PHP:
$query = "SELECT level FROM `players` ORDER BY level DESC;";

Thanks for your replying, it worked well.

Is lastdeath some kind of AAC engine ?

It's called --daydream and ye it's new aac done by me, maybe i release when i complete it and check it, ( Iam 90 % done)
 
Last edited:
Back
Top