query('SELECT title, category, budget, description, skills FROM jobs ORDER BY created_at DESC'); $jobs = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { // In a real application, you would log this error and show a user-friendly message. die("Could not connect to the database and fetch jobs: " . $e->getMessage()); } ?>
Find your next project and start earning.