Skip to content

Commit

Permalink
Update nuke.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rickbot-dot authored Jun 26, 2023
1 parent a254de8 commit b2e22a0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions danger_zone/nuke.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@
exit;
}
$conn = new mysqli($servername, $username, $password, $dbname);
$sql = "DROP TABLE bugs;\n";
$sql = "DROP TABLE bugs;";
if (mysqli_query($conn, $sql)) {
echo "\nFinished removing bugs table";
} else {
echo "Something went wrong. Reload the page.\nThis is the error message:\n" . mysqli_error($conn);
exit;
}
$sql .= "DROP TABLE comments;";
if (mysqli_query($conn, $sql)) {
echo "Done, redirecting soon...";
header("Location: $path");
} else {
echo "Something went wrong. Try again.\nThis is the error message:\n" . mysqli_error($conn);
echo "Something went wrong. Reload the page.\nThis is the error message:\n" . mysqli_error($conn);
}
exit;
}
Expand Down

0 comments on commit b2e22a0

Please sign in to comment.