Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

14 rindas
738 B

  1. <?php
  2. # investigate if we can put multiple input boxes and loop through them to insert into the database (see includes/titleranks-add.php)
  3. # https://stackoverflow.com/questions/34469482/how-to-insert-multiple-inputs-into-the-database-using-the-power-of-php
  4. $stmtstins = $con->prepare("INSERT INTO gwsubtitles (titlenameid, stname, stpoints, strank) VALUES (?, ?, ?, ?)");
  5. $stmtstins->bind_param("isii", $_POST['titlenameid'], $_POST['titlerankname'], $_POST['titlepoints'], $_POST['titlerank']);
  6. $stmtstins->execute();
  7. $stmtstins->close();
  8. $_SESSION['title'] = "repeat";
  9. $_SESSION['tid'] = $_POST['titlenameid'];
  10. $_SESSION['tr'] = $_POST['titlerank'];
  11. echo 'Title rank added, redirecting!';
  12. header ("Refresh:1; url=titlemanager.php");
  13. ?>