Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

15 行
674 B

  1. <?php
  2. if (isset($_SESSION['userid'])){
  3. // $pc = ProfessionColor
  4. $pc = $con->prepare("SELECT profcolor FROM gwprofessions WHERE profid = ?");
  5. $pc->bind_param("i", $_POST['profid']);
  6. $pc->execute();
  7. $profcolor = $pc->get_result()->fetch_object()->profcolor;
  8. // $ac = AddCharacter
  9. $ac = $con->prepare("INSERT INTO gwchars (accid, userid, charname, birthdate, profid, profcolor) VALUES (?, ?, ?, ?, ?, ?)");
  10. $ac->bind_param("iissis", $_SESSION['prefaccid'], $_SESSION['userid'], $_POST['newcharname'], $_POST['bdate'], $_POST['profid'], $profcolor);
  11. $ac->execute();
  12. $ac->close();
  13. echo $_POST['newcharname'] . ' added to your account!<br /><br />';
  14. }
  15. ?>