Merge pull request 'getBenutzer' (#13) from getBenutzer into main

Reviewed-on: #13
This commit is contained in:
Sven Alteköster 2024-01-18 10:30:54 +01:00
commit 28dc1b076f

View File

@ -9,12 +9,12 @@ use ppb\Library\Msg;
class BenutzerModel extends Database class BenutzerModel extends Database
{ {
public function selectBestellung($id) public function selectBenutzer($id)
{ {
$pdo = $this->linkDB(); $pdo = $this->linkDB();
$params = array(); $params = array();
$sql = "SELECT FROM Benutzer WHERE id = :id"; $sql = "SELECT * FROM Benutzerkonto WHERE id = :id";
$params["id"] = $id; $params["id"] = $id;
//Ausführen des SQL befehls //Ausführen des SQL befehls