Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="inviters" id="top_inviters_source">
- <div class="window">
- <ul id="inviters_source">
- </ul>
- <?php
- $getMods = $db->query("SELECT * FROM `users` WHERE `rank` >= '2' LIMIT 10");
- while($mod = $getMods->fetch_assoc())
- {
- $getPic = $db->query("SELECT * FROM `users_pictures` WHERE `user_id` = '".$mod['id']."' AND `profile_picture` = '1' LIMIT 1");
- if($getPic->num_rows >= 1)
- $pic = $getPic->fetch_assoc();
- if($getPic->num_rows >= 1)
- $picture = $pic['unique_id'];
- else
- $picture = $_CONFIG['default_profile_picture'];
- ?>
- <li>
- <a href="{url}/<?php echo $mod['username']; ?>">
- <div style="background:url({picUrl}/<?php echo $picture; ?>.thumbnail.jpg);background-size:cover;background-position:center center;height:65px;width:65px;"></div>
- </a>
- </li>
- <?php } ?>
- <ul id="top_inviters_destination" class="hidden"></ul>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement