$con = mysqli_connect("localhost", "username", "password", "dbName");
$dbname = "mydatabase"; $host = "localhost"; $user = "myuser"; $pass = "mypassword"; $conn = pg_connect("host=$host dbname=$dbname user=$user password=$pass");In both examples, the parameter of DB dbName is specified as the fourth argument in the connection function. The package library for PHP DB dbName would be the PHP database extensions, specifically the mysqli extension for MySQL and the pg_connect function for PostgreSQL.