This commit is contained in:
Gnieark 2016-06-10 11:10:04 +02:00
parent 741e3f1b30
commit 6e404391b9

View File

@ -180,8 +180,8 @@ function get_battles_history($game){
function ELO_get_podium($arena){ function ELO_get_podium($arena){
global $lnMysql; global $lnMysql;
$podium=array(); $podium=array();
echo "SELECT id,name,description,ELO FROM bots WHERE game='".substr($arena,0,8)."' AND active='1' ORDER BY ELO DESC, name"; echo "SELECT id,name,description,ELO FROM bots WHERE game='".substr($arena,0,10)."' AND active='1' ORDER BY ELO DESC, name";
$rs=mysqli_query($lnMysql,"SELECT id,name,description,ELO FROM bots WHERE game='".substr($arena,0,8)."' AND active='1' ORDER BY ELO DESC, name"); $rs=mysqli_query($lnMysql,"SELECT id,name,description,ELO FROM bots WHERE game='".substr($arena,0,10)."' AND active='1' ORDER BY ELO DESC, name");
while($r = mysqli_fetch_row($rs)){ while($r = mysqli_fetch_row($rs)){
$podium[]=array( $podium[]=array(
'id' => $r[0], 'id' => $r[0],