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トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

19 行
778 B

  1. <?php
  2. include_once 'gw-connect.php';
  3. $con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME);
  4. if ($con->connect_errno > 0){
  5. die ('Unable to connect to database [' . $db->connect_errno . ']');
  6. }
  7. $sql = "SELECT playerid, charname FROM `playername` WHERE `userid` = '1' ORDER BY `charname` ASC"; //need to make userid a variable
  8. if (!$result = $con->query($sql)){
  9. die ('There was an error running the query [' . $con->error . ']');
  10. }
  11. echo '<FORM METHOD="POST" NAME="cselect" ACTION="gw-pull.php">';
  12. echo '<SELECT NAME="cname">';
  13. while ($row = $result->fetch_array()){
  14. $charid = $row['playerid'];
  15. $charname = $row['charname'];
  16. echo '<OPTION VALUE="' . $charid . '">' . $charname . '</OPTION>';
  17. }
  18. echo '<INPUT TYPE="SUBMIT" VALUE="Choose Toon"></FORM>';
  19. ?>