|
|
@ -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)) {
|
|
|
|