0) { delete_transaction($id, user_id()); } header('Location: /transactions.php'); exit;