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

13 行
709 B

  1. <?php
  2. include_once 'gw-connect.php';
  3. $con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME);
  4. //post data section
  5. # just testing max gold value - should be 9999
  6. $gold = $_POST['droppedgold'];
  7. $droptype = mysqli_real_escape_string($con, $_POST['droptype']); //this dictates if the drop was a weapon/rune/material
  8. $locid = mysqli_real_escape_string($con, $_POST['location']); //this is `treasurelocation`.`treasureid` in the database
  9. echo 'The droptype variable is set to ' . $droptype . '<BR />';
  10. echo 'The locid variable is set to ' . $locid . '<BR />';
  11. echo 'The amount of gold dropped was ' . $gold . '<BR />';
  12. echo '<BR />Return to <A HREF="gw-record.php">data recording</A> page';
  13. ?>