Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <?php $records = array();
  2.  
  3. if ($results = $db->query("SELECT * FROM user_settings UNION SELECT * FROM leaderboards")) {
  4. if ($results->num_rows) {
  5. while ($row = $results->fetch_object()) {
  6. $records[] = $row;
  7. }
  8. $results->free();
  9. }
  10. }
  11.  
  12. ?>
  13. <?php foreach ($records as $data) { ?>
  14.  
  15. ...the HTML etc...
  16.  
  17. <?php } ?>
  18.  
  19. if ($results = $db->query("SELECT * FROM user_settings, leaderboards")) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement