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';
|
||||
?>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
include '../head.php';
|
||||
|
||||
$id= $_GET['id'];
|
||||
|
||||
include '../connect.php';
|
||||
|
||||
$deleteKunde="delete from mitarbeiter where Mitarbeiternummer=?";
|
||||
|
||||
|
||||
$stmt=$sql->prepare($deleteKunde);
|
||||
$stmt->bind_param("i",$id);
|
||||
$stmt->execute();
|
||||
|
||||
echo '<h1>Mitarbeiter Gelöscht</h1>';
|
||||
?>
|
||||
|
||||
<?php
|
||||
include '../tail.php';
|
||||
?>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
include '../head.php';
|
||||
|
||||
|
||||
|
||||
include '../connect.php';
|
||||
|
||||
$id= $_POST['id'];
|
||||
$vorname = $_POST['Vorname'];
|
||||
|
||||
|
||||
$query="
|
||||
UPDATE
|
||||
mitarbeiter
|
||||
SET
|
||||
Vorname = ?
|
||||
WHERE
|
||||
Mitarbeiternummer = ?";
|
||||
$stmt=$sql->prepare($query);
|
||||
|
||||
|
||||
$stmt->bind_param("si",$vorname,$id);
|
||||
if ($stmt->execute()){
|
||||
echo '<h1>Mitarbeiter Gespeichert</h1>';
|
||||
} else{
|
||||
echo '<h1>Fehler bei Speicherung</h1>';
|
||||
echo $stmt->error;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
include '../tail.php';
|
||||
?>
|
||||
Reference in New Issue
Block a user