added a new example file and gitignored the prod file

This commit is contained in:
thies 2021-01-10 17:54:24 +01:00
parent 33e9862dce
commit a665ab63b0
2 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
*/.DS_Store
.DS_Store
db.inc.php

9
db.inc.example.php Normal file
View File

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