11 lines
292 B
PHP
11 lines
292 B
PHP
<?php
|
|
function getDB() {
|
|
$dbhost="localhost";
|
|
$dbuser="resicouser";
|
|
$dbpass="resico123";
|
|
$dbname="resico";
|
|
$dbConnection = new PDO("mysql:host=$dbhost;dbname=$dbname", $dbuser, $dbpass);
|
|
$dbConnection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
|
return $dbConnection;
|
|
}
|
|
?>
|