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