Kapitel 6 Lektion 7 gesplittet

This commit is contained in:
Jan Unger
2016-08-25 20:50:07 +02:00
parent 88cf71d772
commit a4afe1a11c
16 changed files with 843 additions and 45 deletions

View File

@@ -0,0 +1,14 @@
<?php
/**
* @return PDO
*/
function holeDatenbankverbindung()
{
return new PDO(
'mysql:dbname=mediathek;host=localhost',
'root',
'root',
[PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"]
);
}