Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

23 wiersze
868 B

  1. <?php
  2. echo '<table border="1"><caption>Account wide stats</caption>';
  3. echo '<tr><th>Title Name</th><th>Title Points</th><th>Current Rank</th><th>Points Remaining</th><th>Next Rank</th></tr>';
  4. // $gas = GetAccountStats
  5. $gas = $con->prepare("SELECT * FROM gwaccstats WHERE userid = ? AND accid = ?;");
  6. $gas->bind_param("ii", $_SESSION['prefaccid'], $_SESSION['userid']);
  7. $gas->execute();
  8. $result = $gas->get_result();
  9. while ($row = $result->fetch_assoc()) {
  10. echo '<tr><td>' . $row['currentstrankname'] . '</td><td>' . $row['titlepoints'] . '</td><td>' . $row['currentstrank'] . '</td>';
  11. echo '<td>';
  12. $pr = ($row['nextstrankpoints'] - $row['titlepoints']);
  13. if ($pr < 0) {
  14. echo 'Maximum rank achieved!';
  15. } else {
  16. echo $pr;
  17. }
  18. echo '</td>';
  19. echo '<td>' . $row['nextstrank'] . '</td></tr>';
  20. }
  21. $gas->close();
  22. echo '</table>';
  23. ?>