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个字符
 
 
 

15 行
626 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 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. while ($row = $result->fetch_array()){
  12. echo 'Please select a character to continue: <A HREF="gw-pull.php?toonid=' . $row['playerid'] . '">' . $row['charname'] . '</A><BR />';
  13. }
  14. ?>