Fix of saving page

This commit is contained in:
Jenkings
2024-01-12 06:28:07 +00:00
parent 6695b6b86d
commit 9a2f536fac

View File

@@ -102,14 +102,14 @@ class Pages {
$stmt = $this->conn->prepare("
INSERT INTO ".$this->pageTable."(`title`, `link`, `content`)
VALUES(:t,:l, :c)");
VALUES(:t, :l, :c)");
$this->title = htmlspecialchars(strip_tags($this->title));
$this->link = htmlspecialchars(strip_tags($this->link));
$stmt->bindParam(":t", $this->title);
$stmt->bindParam(":l", $this->link);
$stmt->bindParam(":c;", $this->content);
$stmt->bindParam("t", $this->title);
$stmt->bindParam("l", $this->link);
$stmt->bindParam("c", $this->content);
if($stmt->execute()){
@@ -203,4 +203,4 @@ class Pages {
}
?>
?>