Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
Você não pode selecionar mais de 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.
 
 
 
 
 

28 linhas
1.5 KiB

  1. <?php
  2. # delete this block when shit finally works.
  3. ini_set('display_errors', 'on');
  4. error_reporting(E_ALL);
  5. mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
  6. # delete the above when shit finally works
  7. # $tid = $_SESSION['tid'] = titlenameid from database
  8. # $stid = $_POST['editstitle'] = stnameid from database and it should return an array of numbers
  9. echo '<form action="titlemanager.php" method="post"><table border="1"><tr><th>stnameid</th><th>titlenameid</th><th>stname</th><th>stpoints</th><th>strank</th></tr>'; //save this line!!!
  10. $ph = implode(",", $_POST['editstitle']);
  11. $sredit = $con->prepare("SELECT * FROM gwsubtitles WHERE titlenameid = ? AND stnameid IN ($ph)");
  12. $sredit->bind_param("i", $_SESSION['tid']);
  13. $sredit->execute();
  14. $result = $sredit->get_result();
  15. while ($row = $result->fetch_assoc()) {
  16. echo '<tr><td><input type="text" readonly size="4" name="stnameid" value="' . $row['stnameid']. '"></td><td><input type="text" readonly size="4" name="titlenameid" value="' . $row['titlenameid'] . '"></td>';
  17. echo '<td><input type="text" name="stname" value="' . $row['stname'] . '"></td><td><input type="number" min="1" name="stpoints" value="' . $row['stpoints'] . '"></td>';
  18. echo '<td><input type="number" size="4" min="1" max="15" name="strank" value="' . $row['strank'] . '"></td></tr>';
  19. }
  20. echo '</table><br /><input type="hidden" name="title" value="updatesubtitle"><input type="submit" value="Modify title rank(s)"></form>';
  21. echo '<br /><br />';
  22. echo 'Return to <a href="titlemanager.php" class="navlink">title manager</a>';
  23. ?>