Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

23 linhas
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. ?>