Skip to content

Commit

Permalink
Fix fragment redir using old ID when moving game to new table
Browse files Browse the repository at this point in the history
  • Loading branch information
xdpirate committed Nov 28, 2023
1 parent 7fc9f3a commit 49691a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions php/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
mysqli_query($link, "INSERT INTO $newTable (GameName,Platforms) VALUES ('$gameName','$platforms')");
}

$gameID = mysqli_insert_id($link);
mysqli_query($link, "DELETE FROM $oldTable WHERE ID=$gameID");
}

Expand Down

0 comments on commit 49691a7

Please sign in to comment.