done
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
include '../head.php';
|
||||
|
||||
|
||||
|
||||
include '../connect.php';
|
||||
|
||||
|
||||
$vorname = $_POST['Name'];
|
||||
|
||||
|
||||
$query="
|
||||
INSERT INTO
|
||||
mitarbeiter
|
||||
(`Vorname`)
|
||||
VALUES
|
||||
(?)";
|
||||
$stmt=$sql->prepare($query);
|
||||
|
||||
|
||||
$stmt->bind_param("s",$vorname);
|
||||
if ($stmt->execute()){
|
||||
echo '<h1>Mitarbeiter Erstellt</h1>';
|
||||
} else{
|
||||
echo '<h1>Fehler bei Speicherung</h1>';
|
||||
echo $stmt->error;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
include '../tail.php';
|
||||
?>
|
||||
Reference in New Issue
Block a user