prepare("SELECT * FROM jobs WHERE id = :id"); $stmt->bindParam(':id', $job_id, PDO::PARAM_INT); $stmt->execute(); $job = $stmt->fetch(PDO::FETCH_ASSOC); if (!$job) { // Or show a "Job not found" message header("Location: jobs.php"); exit(); } } catch (PDOException $e) { // In a real app, log this error instead of displaying it die("Database error: " . $e->getMessage()); } ?>