0) { $pdo = db(); $stmt = $pdo->prepare("SELECT * FROM jobs WHERE id = ?"); $stmt->execute([$job_id]); $job = $stmt->fetch(); } if ($job) { $job['requirements'] = json_decode($job['requirements'], true); $job['benefits'] = json_decode($job['benefits'], true); } // SEO and page metadata $page_title = $job ? htmlspecialchars($job['title']) . ' - CosmicHire' : 'Job Not Found'; $page_description = $job ? 'Apply for the ' . htmlspecialchars($job['title']) . ' position at CosmicHire. Location: ' . htmlspecialchars($job['location']) : 'The job you are looking for could not be found.'; $page_keywords = 'jobs, careers, hiring, ' . ($job ? htmlspecialchars($job['title']) : ''); ?>
Sorry, the job you are looking for does not exist or has been filled.
View All Open Positions