edited
connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// Get record ID from the URL
$id = isset($_GET['id']) ? intval($_GET['id']) : 0;
// Fetch data for the specific record
$sql = "SELECT url, title, description, keywords, country, categorys, status FROM url_entries WHERE id = ?";
$stmt = $conn->prepare($sql);
$stmt->bind_param("i", $id);
$stmt->execute();
$result = $stmt->get_result();
$row = $result->fetch_assoc();
$stmt->close();
$conn->close();
?>