mirror of
https://github.com/janunger/rheinwerk-video-training.git
synced 2024-12-23 05:03: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"]
|
|
);
|
|
}
|