Just a web script to help track when, where, and what you got from the free treasures scattered about Nightfall in the game Guild Wars.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

44 lignes
1.6 KiB

  1. <TITLE>What Dropped?</TITLE>
  2. <?php
  3. include_once 'gw-connect.php';
  4. $con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME);
  5. #$toonid = mysqli_real_escape_string($con, $_POST['playerid']); //enable this after character selection is working
  6. $toonid = 'Chrissi Chan';
  7. if ($con->connect_errno > 0){
  8. die ('Unable to connect to database [' . $db->connect_errno . ']');
  9. }
  10. $sqlweapattr = "SELECT * FROM `listattribute` ORDER BY `weapattrid` ASC";
  11. if (!$result = $con->query($sqlweapattr)){
  12. die ('There was an error running the query [' . $con->error . ']');
  13. }
  14. echo '<SELECT NAME="attribute">';
  15. while ($row = $result->fetch_array()){
  16. $attrid = $row['weapattrid'];
  17. $weapattr = $row['weaponattribute'];
  18. echo '<OPTION VALUE="' . $attrid . '">' . $weapattr . '</OPTION>';
  19. }
  20. echo '</SELECT>';
  21. $sqlweaprare = "SELECT * FROM `listrarity` ORDER BY `rareid` ASC";
  22. if (!$result = $con->query($sqlweaprare)){
  23. die ('There was an error running the query [' . $con->error . ']');
  24. }
  25. echo '<SELECT NAME="rare">';
  26. while ($row = $result->fetch_array()){
  27. $rareid = $row['rareid'];
  28. $rarity = $row['rarity'];
  29. echo '<OPTION VALUE="' . $rareid . '">' . $rarity . '</OPTION>';
  30. }
  31. echo '</SELECT><BR />';
  32. $sqlweaprare = "SELECT * FROM `listrarity` ORDER BY `rareid` ASC";
  33. if (!$result = $con->query($sqlweaprare)){
  34. die ('There was an error running the query [' . $con->error . ']');
  35. }
  36. echo '<SELECT NAME="rare">';
  37. while ($row = $result->fetch_array()){
  38. $rareid = $row['rareid'];
  39. $rarity = $row['rarity'];
  40. echo '<OPTION VALUE="' . $rareid . '">' . $rarity . '</OPTION>';
  41. }
  42. echo '</SELECT><BR />';
  43. ?>