diff --git a/Suli/13.b/Backend/2024. 11. 25/config.php b/Suli/13.b/Backend/2024. 11. 25/config.php new file mode 100644 index 0000000..bf6e822 --- /dev/null +++ b/Suli/13.b/Backend/2024. 11. 25/config.php @@ -0,0 +1,13 @@ + connect_errno) { + die("Nem sikerült a kapcsolat kiépítése: ".$conn -> connect_error); + } + +?> \ No newline at end of file diff --git a/Suli/13.b/Backend/2024. 11. 25/html.php b/Suli/13.b/Backend/2024. 11. 25/html.php new file mode 100644 index 0000000..365cf30 --- /dev/null +++ b/Suli/13.b/Backend/2024. 11. 25/html.php @@ -0,0 +1,14 @@ + + + + + + Szűrés + + +
+ + +
+ + \ No newline at end of file diff --git a/Suli/13.b/Backend/2024. 11. 25/index.php b/Suli/13.b/Backend/2024. 11. 25/index.php new file mode 100644 index 0000000..b7ab17c --- /dev/null +++ b/Suli/13.b/Backend/2024. 11. 25/index.php @@ -0,0 +1,35 @@ + query($sql); + + if ($result -> num_rows > 0) { + $i = 1; + echo " + + + + "; + while ($row = $result -> fetch_object()) { + echo " + + + + "; + } + echo "
Ssz.Cím.Ár.
".$i++."".$row -> cim."".$row -> jegyar."
"; + } + } + + else { + echo "Nincs adat"; + } + + require_once("html.php"); + $conn -> close() +?> \ No newline at end of file