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.
 
 
 
 
 

45 líneas
1.3 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'];
  8. echo 'the session tid number is: <b>' . $_SESSION['tid'] . '</b><br />';
  9. $stid = array();
  10. foreach ($_POST['editstitle'] as $tredit) {
  11. $stid[] = (int)$tredit;
  12. }
  13. $stid = implode(',', $stid);
  14. echo 'the value of stid is now: ' . $stid . '<br />';
  15. $sredit = $con->prepare("SELECT * FROM gwsubtitles WHERE titlenameid = ? AND stnameid IN (?)");
  16. $sredit->bind_param("is", $tid, $stid);
  17. $sredit->execute();
  18. $sredit->store_result();
  19. $sredit->bind_result($gwtid, $gwstid);
  20. while ($sredit->fetch()) {
  21. echo 'farts <br />';
  22. }
  23. $sredit->free_result();
  24. $sredit->close();
  25. // keep this section
  26. /* if (isset($_POST['editstitle'])) {
  27. $sredit = $con->prepare("SELECT * FROM gwsubtitles WHERE stnameid = ? AND titlenameid = ?");
  28. foreach ($_POST['editstitle'] as $tredit) {
  29. $sredit->bind_param("ii", $tid, $tredit);
  30. $sredit->execute();
  31. $sredit->store_result();
  32. $sredit->bindresult(
  33. echo 'the value is: <b>' . $tredit . '</b><br />';
  34. }
  35. } else {
  36. echo 'nothing is set?? <br />';
  37. }
  38. */
  39. echo '<br />code to mod title ranks via an include goes here<br /><br />';
  40. echo 'Return to <a href="titlemanager.php" class="navlink">title manager</a>';
  41. ?>