diff --git a/php/login/log.css b/php/login/log.css new file mode 100644 index 0000000..65e4d3d --- /dev/null +++ b/php/login/log.css @@ -0,0 +1,33 @@ +* { + font-family: sans-serif; +} +#log1_html form { + margin-top: 10%; + margin-left: 20%; + line-height: 2em; + background-color: #888; + width: fit-content; + padding: 10px 25px; +} +#log1_html input:focus { + background: #aaa; +} +#log1_php table,#log1_php td,#log1_php th { + border: 2px navy solid; + border-collapse: collapse; +} +#log1_php td #log1_php th { + padding:2px 4px; +} +#log1_php tr:hover { + background-color: #333; + color: bisque; +} +#log1_php tr:last-child { + background-color: red; + color: aqua; +} +#log1_php input[type="submit"] { + margin-top:2%; + margin-left: 10%; +} \ No newline at end of file diff --git a/php/login/log1.html b/php/login/log1.html new file mode 100644 index 0000000..5de2aec --- /dev/null +++ b/php/login/log1.html @@ -0,0 +1,20 @@ + + + + + + Document + + + +
+
+ + + +
User name:
Password:
+ +
+
+ + \ No newline at end of file diff --git a/php/login/log1.php b/php/login/log1.php new file mode 100644 index 0000000..607a961 --- /dev/null +++ b/php/login/log1.php @@ -0,0 +1,56 @@ + + + + + + Document + + + + +
+logowanie pomyślne!"; + echo ""; + echo""; + while($row=mysqli_fetch_row($q2)){ + echo ""; + } + echo""; + while($row=mysqli_fetch_row($q)) { + echo""; + for($i=0;$i$row[$i]"; + echo""; + } + echo "
$row[0]
"; + echo'
'; +} else { + echo "

logowanie nie powiodło się

"; + echo'
'; + header("Refresh: 5; url=log1.html"); +} +} + else { + echo "błąd danych"; + exit; + } +?> + +
+ + \ No newline at end of file