I am looking for a way to tell the server to die when there is an error.
Examples: Let's say there are 2SQL queries. If one of them does an error, I want none of them to work, as if nothing has been clicked.
Example 2: When you miss a semicolon or similar on your code, but the other parts of your code still works and displays something that isn't supposed.
Something like
if (error) {
do nothing and go back to index page;
}