Update database statement for recurring bills.

This commit is contained in:
2024-03-07 17:10:31 +01:00
parent 1fc4026227
commit f053ad40ae

View File

@@ -1,7 +1,7 @@
<?php <?php
if ("2" == $_POST['step']) if ("2" == $_POST['step'])
{ {
$sql = 'INSERT INTO ' . PREFIX . '_Reminder (Jahr, ID, Kontakt_ID, Admin_ID, MwSt, Datum) VALUES (YEAR(CURDATE()), NULL, "' . $_POST['Kontakt_ID'] . '", "' . $_POST['Admin_ID'] . '", "' . $_POST['MwSt'] . '", CURDATE())'; $sql = 'INSERT INTO ' . PREFIX . '_Reminder (Jahr, ID, Kontakt_ID, KfZ_ID, Admin_ID, MwSt, Datum) VALUES (YEAR(CURDATE()), NULL, NULL, "' . $_POST['Kontakt_ID'] . '", "' . $_POST['Admin_ID'] . '", "' . $_POST['MwSt'] . '", CURDATE())';
$stmt = $db->prepare($sql); $stmt = $db->prepare($sql);
if (!$stmt) if (!$stmt)
{ {