Find Your Next Opportunity

The AI-powered platform to discover jobs and build your career.

query('SELECT * FROM jobs ORDER BY created_at DESC'); $jobs = $stmt->fetchAll(); if (empty($jobs)) { echo "

No job listings found at the moment. Please check back later.

"; } else { foreach ($jobs as $job) { echo '
' . htmlspecialchars($job['title']) . '
' . htmlspecialchars($job['company']) . '

' . htmlspecialchars($job['location']) . '

' . substr(htmlspecialchars($job['description']), 0, 100) . '...

' . htmlspecialchars($job['job_type']) . ' ' . htmlspecialchars($job['salary']) . '
'; } } } catch (PDOException $e) { // In a real app, log this error. For now, show a friendly message. echo "

Error: Could not connect to the database to fetch jobs.

"; } ?>