This script handles the deletion of the particular insertion from the database by website admins or insertion owners. More...
Functions | |
terminateDeclineAdminWithError ($errorParam) | |
Variables | |
if(isset($error)) | try |
This script handles the deletion of the particular insertion from the database by website admins or insertion owners.
Connects to the database, deletes the record of a particular id provived as GET request parameter from the 'insertions' table. Redirects to the main page. Terminates in case of connection- or update- error and redirects to the main page with an error context info as a parameter of the redirecting GET request.
terminateDeclineAdminWithError | ( | $errorParam | ) |
Redirects the user to a specified location with an error parameter.
string | $errorParam | The error parameter to append to the URL. |
Handles PDO exceptions by redirecting with an error parameter.
if (isset( $error)) try |
Checks if an error occurred during database connection and redirects with an error parameter.