1.2 KiB
1.2 KiB
$member['mb_maze']로 변경하여 를 사용하면 된다.
* 캐릭터가 생성된 계정에 대해서만 랭킹 기록이 보관된다.
*/
$maze_count = sql_fetch("select count(*) as cnt from {$g5['maze_table']}");
$maze_count = $maze_count['cnt'];
$ma = sql_fetch("select ma_subject, ma_order from {$g5['maze_table']} where ma_id = '{$mb['mb_maze']}'");
$ma_count = sql_fetch("select count(*) as cnt from {$g5['maze_table']} where ma_order <= '{$ma['ma_order']}' and ma_id != '{$mb['mb_maze']}'");
$ma_count = $ma_count['cnt'];
$ma_per = $ma_count == 0 ? 0 : $ma_count / $maze_count * 100;
/* 진행률 그래프 출력 예시
- Maze
-
<span style="width: <?=$ma_per?>%;"></span> <sup style="width: <?=$ma_per?>%;"></sup> </p> </dd>
미궁 - 진행중