update( "plugins", array( 'Status' => '0' ), "Id = $id" ); if ( $result ) { // if result is successfull it redirects and shows success message header( "Location: index.php?page=plugins&result=5" ); exit; } else { // if result is unsuccessfull it redirects and shows success message header( "Location: index.php?page=plugins&result=6" ); exit; } } else { //if $_GET variable is not set it redirects and shows error header( "Location: index.php?page=plugins&result=6" ); exit; } } }