<?php
// Redirect to add_repair_job.php with id parameter for editing
$id = isset($_GET['id']) ? (int)$_GET['id'] : 0;
if ($id) {
    header("Location: add_repair_job.php?id=$id");
    exit;
}
header('Location: repair_jobs.php');
exit;
