Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

15 righe
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. ?>