Einchecken des Online-Codes
This commit is contained in:
18
admin/inhalte/stammdaten/kontroll/zg_deakt_all.php
Normal file
18
admin/inhalte/stammdaten/kontroll/zg_deakt_all.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
if ( isset ( $_POST['ID'] ) AND 'All' == $_POST['ID'] )
|
||||
{
|
||||
$sql = 'UPDATE User SET
|
||||
userDeact = "Y"
|
||||
WHERE userIsAdmin = "N" AND userIsBuero = "N";';
|
||||
$stmt = $db->prepare($sql);
|
||||
if ( !$stmt )
|
||||
{
|
||||
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
|
||||
}
|
||||
if ( !$stmt->execute() )
|
||||
{
|
||||
die ('Datensatz konnte nicht gespeichert werden: '.$stmt->error);
|
||||
}
|
||||
include "inhalte/stammdaten/kontroll/zg_over.php";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user