single( "SELECT id FROM connections WHERE id = ?", "i", [$connectionId] ); if (!$connection) { $_SESSION['error'] = 'Verbindung nicht gefunden'; header('Location: ?module=connections&action=list'); exit; } $rows = $sql->set( "DELETE FROM connections WHERE id = ?", "i", [$connectionId] ); if ($rows > 0) { $_SESSION['success'] = 'Verbindung geloescht'; } else { $_SESSION['error'] = 'Verbindung konnte nicht geloescht werden'; } header('Location: ?module=connections&action=list'); exit;