exit;
die( "Could not execure query" );
This is useful in
... if(!do_something( ... )) die( "Failed doing something" ); ...