12 lines
263 B
PHP
12 lines
263 B
PHP
<?php
|
|
|
|
class DBHelper
|
|
{
|
|
private $servername = '';
|
|
private $username = '';
|
|
private $password = '';
|
|
public function getDBConnection()
|
|
{
|
|
$pdo = new PDO("mysql:host=$this->servername;dbname=myDB", $this->username, $this->password);
|
|
}
|
|
} |