Alter Version

This commit is contained in:
Walter Hupfeld
2024-02-16 15:35:01 +01:00
parent 6e85cec1da
commit 0df6729f8b
393 changed files with 173746 additions and 6 deletions

View File

@@ -0,0 +1,21 @@
<?php
$dbFilename="../db/locations.db";
require ("../config.php");
if ($boolComment){
$strUsername = htmlentities(trim($_POST['comment_username']));
$strUsername = addslashes($strUsername);
$strComment = htmlentities(trim($_POST['comment']));
$strComment = addslashes($strComment);
$id=(int)$_POST['loc_id'];
$stmt = $db->prepare("INSERT INTO comment (loc_id,username,comment)
VALUES (:loc_id,:username,:comment)");
$stmt->bindValue(':username', $strUsername);
$stmt->bindValue(':comment', $strComment);
$stmt->bindValue(':loc_id', $id);
$stmt->execute();
echo "ok";
}
?>