Store in GIT

This commit is contained in:
2026-06-17 15:42:16 +02:00
parent 9950ec87ac
commit 90f27d4516
47 changed files with 19559 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
require("../../inc/connect.php");
$name = $_POST['name'];
$uid = $_POST['uid'];
$language = $_POST['language'];
$date = $_POST['date'];
$grade = $_POST['grade'];
$body = $_POST['body'];
$grade = str_replace(",", ".", $grade);
$body = str_replace("\n", "<br/>", $body);
$stmt = $mysqli->prepare("INSERT INTO `project` (`name`, `uid`, `language`, `date`, `grade`, `body`) VALUES (?,?,?,?,?,?) ");
$stmt->bind_param("ssssds", $name, $uid, $language, $date, $grade, $body);
$stmt->execute();
$stmt->close();
header("Location: /ptf-admin/add?success=true");
?>