From 2ec2e2f6dc56429a94f86834832dc7f52f1beb72 Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 21 Apr 2025 11:35:18 +0200 Subject: [PATCH] added inbox --- inbox.php | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 inbox.php diff --git a/inbox.php b/inbox.php new file mode 100644 index 0000000..0bfeb8e --- /dev/null +++ b/inbox.php @@ -0,0 +1,42 @@ +connect_error) { + die("Connection failed: " . $conn->connect_error); + } + + $sql = "SELECT * FROM smz_messages_metadata WHERE receiver='$uid' ORDER BY smz_messages_metadata.datetime DESC"; + $result = $conn->query($sql); + $conn->close(); + if ($result->num_rows > 0) { + include ('search.php'); + echo ""; + while($row = $result->fetch_assoc()) { + echo ""; + } + echo "
Absender:
".uid($row["sender"])."
Zeit:
".$row["datetime"]."

"; + } else { + echo "Keine Nachrichten"; + } + +?> + + \ No newline at end of file