first commit
This commit is contained in:
34
admin/save_platz.php
Normal file
34
admin/save_platz.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
if(!isset($_SESSION)) { session_start(); }
|
||||
|
||||
require_once("../config/datenbankanbindung.php");
|
||||
|
||||
|
||||
$reiheplatz = $_POST['get_reiheplatz'];
|
||||
$lfdtid = $_POST['get_lfdtid'];
|
||||
|
||||
$ka_id = $_SESSION["username"];;
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
$split1 = explode("|", $reiheplatz);
|
||||
$reihe = $split1[0];
|
||||
$platz = $split1[1];
|
||||
|
||||
$split2 = explode("|", $lfdtid);
|
||||
$lfd_haushalt = $split2[0];
|
||||
$termin = $split2[1];
|
||||
|
||||
|
||||
$sql1 = $db->query("UPDATE jumi_buchung
|
||||
SET reihe = '$reihe'
|
||||
,platz = '$platz'
|
||||
WHERE tid = $termin
|
||||
AND lfd_haushalt = '$lfd_haushalt'
|
||||
AND reihe = ''
|
||||
");
|
||||
echo "$reihe$platz";
|
||||
exit;
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user