commented db.inc.example.php

This commit is contained in:
Thies Mueller 2021-01-12 17:08:21 +01:00
parent 1da4984710
commit a1d5cb2a67

View File

@ -1,9 +1,9 @@
<?php
$mysqlhost = 'localhost';
$dbname = 'usertable';
$dbuser = 'usertable';
$dbpass = 'password';
$pdo = new PDO('mysql:host='.$mysqlhost.';dbname='.$dbname.'', $dbuser , $dbpass);
$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');
?>