In der SQL ein ORDER BY slot eingebaut, dass immer die richtige Reihenfolge der Clankämpfe im Header angezeigt wird

main
radiskull 13 years ago
parent 38a52da6a3
commit 6a064dbc7e

@ -29,7 +29,7 @@ $action = $_GET['action'];
function getEventChars($challenge_id, $event_id) { function getEventChars($challenge_id, $event_id) {
$sql = 'SELECT * FROM clan_challenge_participants ccp INNER JOIN event_chars ec ON ccp.char_id=ec.event_char_id $sql = 'SELECT * FROM clan_challenge_participants ccp INNER JOIN event_chars ec ON ccp.char_id=ec.event_char_id
INNER JOIN event_fights ef ON ccp.slot=ef.event_fight_id INNER JOIN event_fights ef ON ccp.slot=ef.event_fight_id
WHERE ccp.clan_challenge_id = '.$challenge_id.' AND ec.event_id= '.$event_id.' AND ef.event_id= '.$event_id.';'; WHERE ccp.clan_challenge_id = '.$challenge_id.' AND ec.event_id= '.$event_id.' AND ef.event_id= '.$event_id.' ORDER BY slot;';
$qry = mysql_query($sql); $qry = mysql_query($sql);
$chars = array(); $chars = array();
while($row = mysql_fetch_array($qry)) { while($row = mysql_fetch_array($qry)) {

Loading…
Cancel
Save