getMessage()); // Optional: add a user-facing error message if the DB is critical for the page to load. } // Fetch all site content $pdo = db(); $content = []; try { $stmt = $pdo->query("SELECT section_key, section_value FROM site_content"); while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { $content[$row['section_key']] = $row['section_value']; } } catch (PDOException $e) { error_log('Could not fetch site content: ' . $e->getMessage()); } $about_me_content = $content['about_me'] ?? 'Welcome to your portfolio! You can edit this text in the admin panel.'; $hero_title = $content['hero_title'] ?? 'Creative Developer & Designer'; $hero_subtitle = $content['hero_subtitle'] ?? 'I build beautiful and functional websites.'; // Fetch portfolio items $portfolio_items = []; try { $portfolio_items = $pdo->query("SELECT * FROM portfolio_items ORDER BY sort_order ASC, created_at DESC")->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { error_log('Could not fetch portfolio items: ' . $e->getMessage()); } $project_name = "Personal Portfolio"; $project_description = "Showcase Your Work and Connect: A Personal Portfolio to Impress and Engage with Potential Clients."; $project_keywords = "personal portfolio, creative portfolio, web developer portfolio, designer portfolio, online resume, contact form, project showcase, freelance portfolio"; $project_image_url = "https://project-screens.s3.amazonaws.com/screenshots/30971/app-hero-20251016-105317.png"; ?> <?php echo htmlspecialchars($project_name); ?>

View My Work
Alex

About Me

Portfolio

No portfolio items have been added yet. Check back soon!

Get In Touch