What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-10-24 09:46:12
php mariadb connect
$host = 'localhost'; // URL to the server $user = 'root'; // Username (xampp = root) $pw = ''; // Password (xampp = ) $dbname = 'database'; // The name of your database $dsn = "mysql:host=$host;dbname=$dbname"; $options = [PDO::MYSQL_ATTR_INIT_... Add solution