mirror of
https://github.com/janunger/rheinwerk-video-training.git
synced 2024-12-22 12:43:42 +01:00
15 lines
236 B
PHP
Executable File
15 lines
236 B
PHP
Executable File
<?php
|
|
|
|
/**
|
|
* @return PDO
|
|
*/
|
|
function holeDatenbankverbindung()
|
|
{
|
|
return new PDO(
|
|
'mysql:dbname=mediathek;host=localhost',
|
|
'root',
|
|
'root',
|
|
[PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"]
|
|
);
|
|
}
|