loginpagefoo/db.inc.example.php
2021-01-12 17:08:21 +01:00

10 lines
353 B
PHP

<?php
$mysqlhost = 'localhost'; //the db host
$dbname = 'usertable'; //the db name
$dbuser = 'usertable'; //the db user
$dbpass = 'password'; //the db password
$pdo = new PDO('mysql:host='.$mysqlhost.';dbname='.$dbname.'', $dbuser , $dbpass); //building the string
//$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'usertable', 'password');
?>