1
I would like to know how I can display the data on descending order across the field score
, in that code he’s displaying the smaller for Mayr, and I would like to exhibit the greater for the lesser:
<?php
$pasta = "C:\Users\Vinicius\Desktop\Vinicius\SS Oficial by Vinicius\scriptfiles\Scores";
$classificar = "Score";
$jogadores= -1;
$dadosjogador = array();
$handlepasta = opendir($pasta);
while(($nickname = readdir($handlepasta)) !== false) {
if(($nickname !=".") && ($nickname !="..") && ($nickname != "index.htm") && ($nickname !="info")) {
$jogadores++;
$contaaberta = parse_ini_file($pasta ."/". $nickname);
$nickname = substr($nickname, 0,strlen($nickname)-4);
$dadosjogador[$jogadores] = array($contaaberta[$classificar] ,$nickname );
}
}
array_multisort ($dadosjogador, $dadosjogador);
foreach ($dadosjogador as $jogador_atual) {
echo "<b>Jogador</b>: ".$jogador_atual[1]." | <b>Score</b>: ".$jogador_atual[0]." <br>";
}
?>
put this as an answer! and not editing the question! ie, this is part of an answer!
– novic