Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 line
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. ?>