Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 

26 líneas
1.1 KiB

  1. <?php
  2. if (isset($_SESSION['userid'])) {
  3. if (!isset($_POST['autofill'])) {
  4. $_POST['autofill'] = "0";
  5. }
  6. $stmtins = $con->prepare("INSERT INTO gwtitles (titlename, titletype, titlemaxrank, autofilled) VALUES (?, ?, ?, ?)");
  7. $stmtins->bind_param("siii", $_POST['titlename'], $_POST['titletype'], $_POST['titlemaxrank'], $_POST['autofill']);
  8. $stmtins->execute();
  9. $stmtins->close();
  10. echo 'New title added!<br /><br />';
  11. $stmtview = $con->prepare("SELECT * FROM gwtitles ORDER BY titlenameid DESC LIMIT 1");
  12. $stmtview->execute();
  13. $result = $stmtview->get_result();
  14. while ($row = $result->fetch_assoc()) {
  15. $tid = $row['titlenameid'];
  16. $tname = $row['titlename'];
  17. $ttype = $row['titletype'];
  18. $tmr = $row['titlemaxrank'];
  19. $taf = $row['autofilled'];
  20. echo '<table border="1"><tr><th>titleid</th><th>titlename</th><th>titletype</th><th>titlemaxrank</th><th>autofilled</th></tr>';
  21. echo '<tr><td>' . $tid . '</td><td>' . $tname . '</td><td>' . $ttype . '</td><td>' . $tmr . '</td><td>' . $taf . '</tr></table><br />';
  22. }
  23. $stmtview->close();
  24. echo 'Return to <a href="titlemanager.php" class="navlink">title manager</a>';
  25. }
  26. ?>