Update Pages.php

This commit is contained in:
Jenkings
2024-01-12 06:36:16 +00:00
parent 5e39a4f1aa
commit 246ae9bffc

View File

@@ -179,7 +179,8 @@ class Pages {
$maxResult = $maxQuery->fetch(PDO::FETCH_ASSOC);
$max = ($maxResult['max'] * 1) + 1;
$dataQuery = $this->conn->prepare("SELECT title,link FROM ".$this->pageTable."");
$dataQuery = $this->conn->prepare("SELECT title,link FROM ".$this->pageTable." WHERE id = :id");
$dataQuery->bindParam("id", $this->id);
$dataQuery->execute();
$dataResult = $dataQuery->fetch(PDO::FETCH_ASSOC);