} } ?> </ul> <div class="clearfix"></div> <div class="highscore"> <div class="row"> <div class="col-md-12"> <h3>All Time Games Leaderboard</h3> </div> <?php if (isset($_SESSION['user_loged_id'])) { $user_information = getUserById($_SESSION['user_loged_id']); $u_info = mysql_fetch_array($user_information); $current_user = countGameScoreByUserId($_SESSION['user_loged_id']); if ($current_user > 0) { $user_current_score = mysql_fetch_array($current_user); } ?> <div class="bdr-bot-red"> <div class="col-md-1 nopad-right"> <img src="user_images/<?php echo $u_info['photo']; ?> " width="39" height="39" alt=""> </div> <div class="col-md-3 nopad-left"> <h4 class="hcname"><?php echo $u_info['user_name']; ?> </h4>
<thead> <tr> <th>Rank</th> <th>Player</th> <th>Score</th> </tr> </thead> <tbody> <?php $i = 0; $active = "activeplayer"; $sore_games = getDistinctGameScoreUser(); if ($sore_games > 0) { while ($score_game = mysql_fetch_array($sore_games)) { $i++; $user_scores = countGameScoreByUserId($score_game['user_id']); $score_user = mysql_fetch_array($user_scores); $user_info = getUserById($score_game['user_id']); $info_user = mysql_fetch_array($user_info); ?> <tr <?php if (isset($_SESSION['user_loged_id']) == $score_game['user_id']) { ?> class="<?php echo $active; ?> " <?php } ?>