Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 

15 satır
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. ?>