36 lines
448 B
PHP
36 lines
448 B
PHP
<?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';
|
|
?>
|