🔗 Share Snippet

← Back to Snippets

📝 Database Connection Helper

<?php
function getDbConnection() {
    $dsn = "mysql:host=localhost;dbname=app";
    return new PDO($dsn, "user", "password");
}

🔗 Share URL

⚙️ Sharing Settings

📊 Embed Options