2
0
This commit is contained in:
Daniel
2026-05-19 14:43:41 +02:00
parent 06ac0e086a
commit ad8114a31b
6 changed files with 270 additions and 0 deletions

26
Klassenarbeit/test.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
// DANIEL CWIKLA
require_once 'funktionen.php';
require_once 'db_connect.php';
$dbh = db_connect();
$kdnr = 1;
$umsatz = 50000.676;
echo "<h2>setJahresUmsatz</h2>";
echo "<p>Kundennummer: $kdnr</p>";
echo "<p>Neuer Umsatz: $umsatz</p>";
echo setJahresUmsatz($dbh, $kdnr, $umsatz);
echo "<h2>getJahresUmsatz</h2>";
echo "<p>Jahresumsaz: ";
// php rundet automatisch: "... num is rounded to decimals significant digits before the decimal point."
// https://www.php.net/manual/en/function.number-format.php
echo number_format(getJahresUmsatz($dbh, $kdnr),2);
echo "€ </p>";
echo "<p>setAllRabattStufen: ";
echo setAllRabattStufen($dbh);