From 385226a4a36acb9d0ed672c62e15644f565003fd Mon Sep 17 00:00:00 2001
From: Schuledaniel
Date: Wed, 10 Dec 2025 13:53:48 +0100
Subject: [PATCH] LBT3: begin project
---
Zweites Jahr/README.md | 29 +++++++++++--------
.../db_connection_data.php | 9 ++++++
.../db_connection_function.php | 20 +++++++++++++
3 files changed, 46 insertions(+), 12 deletions(-)
create mode 100644 Zweites Jahr/unterrichts_projekt/db_connection_data.php
create mode 100644 Zweites Jahr/unterrichts_projekt/db_connection_function.php
diff --git a/Zweites Jahr/README.md b/Zweites Jahr/README.md
index 37470f2..e65e927 100644
--- a/Zweites Jahr/README.md
+++ b/Zweites Jahr/README.md
@@ -1,33 +1,38 @@
# Zweites Jahr
-
## Infos
+
Wichtige Informationen
-- Wir eventuell nie aktuell sein.
-- Stundenplan - [Link](https://wvss-mannheim.webuntis.com/WebUntis?school=wvss-mannheim#/basic/timetablePublic/class?date=2025-12-08&entityId=2583)
+
+- Wir eventuell nie aktuell sein.
+- Stundenplan - [Link](https://wvss-mannheim.webuntis.com/WebUntis?school=wvss-mannheim#/basic/timetablePublic/class?date=2025-12-08&entityId=2583)
+
+## 10-12-25 - PHP
+
+- Unterrichtsprojekt begonnen:
+ - Verbindung zur Datenbank
## 9-12-25 - PHP (SQL)
-- Datenbank durch PHP erstellt und Daten hinzufügen
+- Datenbank durch PHP erstellt und Daten hinzufügen
### 21-11-25 - PHP
-- Aufgabe von gestern Kontroliert + Kommentare hinzugefügt
-- XML von AP1 Aufgabe
+- Aufgabe von gestern Kontroliert + Kommentare hinzugefügt
+- XML von AP1 Aufgabe
### 20-11-25 - PHP
-- GETTER in PHP
-- Übung zu OOP
+- GETTER in PHP
+- Übung zu OOP
### 19-11-25 - PHP
-- Übung Datei lesen/schreiben (Log Access)
-
+- Übung Datei lesen/schreiben (Log Access)
### 18-11-25 - PHP
-
-- Datein lesen
+
+- Datein lesen
### Davor
diff --git a/Zweites Jahr/unterrichts_projekt/db_connection_data.php b/Zweites Jahr/unterrichts_projekt/db_connection_data.php
new file mode 100644
index 0000000..54d4fe8
--- /dev/null
+++ b/Zweites Jahr/unterrichts_projekt/db_connection_data.php
@@ -0,0 +1,9 @@
+DB Connection succesfull established!
";
+ return $dbh;
+ } catch (PDOException $e){
+ echo "Could not connect to DB!
";
+ die("More:".$e->getMessage());
+ }
+}
+
+
+// Test:
+db_connect();
\ No newline at end of file