commented db.inc.example.php
This commit is contained in:
parent
1da4984710
commit
a1d5cb2a67
@ -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');
|
||||
?>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user