From 220b56af85d0ef441c0d494af856d5b3f31f86c5 Mon Sep 17 00:00:00 2001 From: Mikolaj Date: Mon, 18 Nov 2019 20:43:33 +0100 Subject: [PATCH] f2 --- index.php | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ style.css | 20 ++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 index.php create mode 100644 style.css diff --git a/index.php b/index.php new file mode 100644 index 0000000..b62083e --- /dev/null +++ b/index.php @@ -0,0 +1,55 @@ + + + + + + + + + + query("SELECT * FROM parametry WHERE Id = 1 "); + + echo "

Dane twojego komputera:

"; + + if($wynik->num_rows > 0){ + + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + while( $wiersz = $wynik->fetch_assoc() ){ + echo ""; + + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + } + + echo "
IdProcesorPlyta_GlownaPamiec_RamDyskKarta_Graficzna
" . $wiersz["Id"] . "" . $wiersz["Procesor"] . "" . $wiersz["Plyta_Glowna"] . "" . $wiersz["Pamiec_Ram"] . "" . $wiersz["Dysk"] . "" . $wiersz["Karta_Graficzna"] . "
"; + + }else { + echo "Nie ma nic w bazie danych"; + } + + $conn->close(); + + ?> + + + + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..3d7a908 --- /dev/null +++ b/style.css @@ -0,0 +1,20 @@ +body { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 10pt; + color: black; + background-color: #80B8E8; + margin: 6mm; +} + +p { + text-align: justify; +} + +pre, code { + font-size: 8pt; +} +td { + border: solid #000 1px; + padding: 5px; + border-spacing: 25mm; + } \ No newline at end of file