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.
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

30 satır
1.0 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. if ($con->connect_errno > 0){
  6. die ('Unable to connect to database [' . $db->connect_errno . ']');
  7. }
  8. $sqlweapattr = "SELECT * FROM `listattribute` ORDER BY `weapattrid` ASC";
  9. if (!$result = $con->query($sqlweapattr)){
  10. die ('There was an error running the query [' . $con->error . ']');
  11. }
  12. echo '<SELECT NAME="attribute">';
  13. while ($row = $result->fetch_array()){
  14. $attrid = $row['weapattrid'];
  15. $weapattr = $row['weaponattribute'];
  16. echo '<OPTION VALUE="' . $attrid . '">' . $weapattr . '</OPTION>';
  17. }
  18. echo '</SELECT> ';
  19. $sqlweaprare = "SELECT * FROM `listrarity` ORDER BY `rareid` ASC";
  20. if (!$result = $con->query($sqlweaprare)){
  21. die ('There was an error running the query [' . $con->error . ']');
  22. }
  23. echo '<SELECT NAME="rare">';
  24. while ($row = $result->fetch_array()){
  25. $rareid = $row['rareid'];
  26. $rarity = $row['rarity'];
  27. echo '<OPTION VALUE="' . $rareid . '">' . $rarity . '</OPTION>';
  28. }
  29. echo '</SELECT> ';
  30. ?>