This repository has been archived by the owner on Mar 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
591 additions
and
1 deletion.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
$conn=new mysqli("localhost", "root", "", "ee09"); | ||
$nrkaretki=$_POST["nrkaretki"]; | ||
$ratownik1=$_POST["ratownik1"]; | ||
$ratownik2=$_POST["ratownik2"]; | ||
$ratownik3=$_POST["ratownik3"]; | ||
$qr="INSERT INTO ratownicy(nrKaretki, ratownik1, ratownik2, ratownik3) VALUES ($nrkaretki,'$ratownik1','$ratownik2','$ratownik3')"; | ||
$result=$conn->query($qr); | ||
echo "Do bazy zostało wysłane zapytanie: INSERT INTO ratownicy(nrKaretki, ratownik1, ratownik2, ratownik3) VALUES ($nrkaretki,'$ratownik1','$ratownik2','$ratownik3')"; | ||
$conn->close(); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
1. INSERT INTO `ratownicy`(`nrKaretki`, `ratownik1`, `ratownik2`, `ratownik3`) VALUES (20,"Adam Nowak","Jan Kowalski","Anna Nowakowska") | ||
|
||
2. SELECT `id`,`adres`,`ratownicy_id` FROM `zgloszenia` WHERE dyspozytorzy_id=4 | ||
|
||
3. CREATE USER 'adam'@'localhost' identified BY 'Adam6&' | ||
|
||
4. GRANT CREATE, DROP, ALTER ON *.* TO 'adam'@'localhost' REQUIRE NONE WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!DOCTYPE html> | ||
<html lang="pl"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Zespoły ratownicze</title> | ||
<link rel="stylesheet" href="styl3.css"> | ||
</head> | ||
<body> | ||
<div id="banerl"> | ||
<h2>Dodanie zespołu ratowniczego</h2> | ||
</div> | ||
<div id="baners"> | ||
<p>Kontakt:<br> 022 222 11 333</p> | ||
</div> | ||
<div id="banerp"> | ||
<img src="obraz.jpg" alt="Ratownicy"> | ||
</div> | ||
<div id="glowny"> | ||
<h3>Dodaj nowy zespół</h3> | ||
<form method="POST" action="dodanie.php"> | ||
<label for="nrkaretki">Numer karetki:</label><br><input type="number" name="nrkaretki"><br> | ||
<label for="ratownik1">Imię i nazwisko pierwszego ratownika</label><br><input type="text" name="ratownik1"><br> | ||
<label for="ratownik2">Imię i nazwisko drugiego ratownika</label><br><input type="text" name="ratownik2"><br> | ||
<label for="ratownik3">Imię i nazwisko trzeciego ratownika</label><br><input type="text" name="ratownik3"><br> | ||
<button type="reset">CZYŚĆ</button> | ||
<button type="submit">DODAJ</button> | ||
</form> | ||
</div> | ||
<div id="stopkal"> | ||
<a href="kwerendy.txt">Zobacz kwerendy</a> | ||
</div> | ||
<div id="stopkas"> | ||
<h5>Przypominamy numery alarmowe</h5> | ||
<ol> | ||
<li>112</li> | ||
<li>999</li> | ||
</ol> | ||
</div> | ||
<div id="stopkap"> | ||
<p>Autor<br>ja</p> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
body | ||
{ | ||
font-family:Arial; | ||
} | ||
#banerl, #baners, #banerp, #stopkal, #stopkas, #stopkap | ||
{ | ||
background-color:SaddleBrown; | ||
color:white; | ||
height:100px; | ||
float:left; | ||
} | ||
#banerl, #stopkal | ||
{ | ||
width:55%; | ||
font-size:120%; | ||
} | ||
#baners, #stopkas | ||
{ | ||
width:25%; | ||
} | ||
#banerp, #stopkap | ||
{ | ||
width:20%; | ||
text-align:right; | ||
} | ||
#main | ||
{ | ||
background-color:Snow; | ||
padding:70px; | ||
clear:both; | ||
} | ||
a | ||
{ | ||
border-width:2px; | ||
border-style:dotted; | ||
border-color:SaddleBrown; | ||
background-color:Snow; | ||
color:SaddleBrown; | ||
padding:20px; | ||
line-height:100px; | ||
} | ||
ol | ||
{ | ||
list-style-type: lower-latin; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters