Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Salon pielęgnacji</title>
- <link rel="stylesheet" type="text/css" href="css/salon.css">
- </head>
- <body>
- <header>
- <h1>SALON PIELĘGNACJI PSÓW I KOTÓW</h1>
- </header>
- <?php
- $connect=mysqli_connect("localhost","root","","salon");
- ?>
- <section id="lewa">
- <h3>SALON ZAPRASZA W DNIACH</h3>
- <ul>
- <li>Poniedziałek, 12:00 - 18:00</li>
- <li>Wtorek, 12:00 - 18:00</li>
- </ul>
- <a href="pies.jpg"><img src="pies-mini.jpg" alt="mini-pies"/></a>
- <p>Umów się telefonicznie na wizytę lub po prostu przyjdź!</p>
- </section>
- <section id="prawa">
- <h3>USŁUGI</h3>
- <?php
- $sql2=mysqli_query($connect,"SELECT nazwa, cena FROM uslugi");
- if (mysqli_num_rows($sql2)>0) {
- while($wiersz2=mysqli_fetch_assoc($sql2)) {
- echo $wiersz2['nazwa'] . ": " . $wiersz2['cena'];
- echo "<br>";
- }
- }
- ?>
- </section>
- <section id="srodek">
- <h3>PRZYPOMNIENIE O NASTĘPNEJ WIZYCIE</h3>
- <?php
- $sql1=mysqli_query($connect,"SELECT imie,rodzaj,nastepna_wizyta,telefon from zwierzeta where nastepna_wizyta !=0");
- if(mysqli_num_rows($sql1)>0) {
- while($wiersz=mysqli_fetch_assoc($sql1)) {
- if ($wiersz['rodzaj']==1) {
- echo "pies: " . $wiersz['imie'];
- echo "<br>";
- }
- if ($wiersz['rodzaj']==2) {
- echo "kot: " . $wiersz['imie'];
- echo "<br>";
- }
- echo "Data następnej wizyty:" . $wiersz['nastepna_wizyta'] . "," . " telefon właściciela: " . $wiersz['telefon'];
- echo "<br>";
- }
- }
- mysqli_close($connect);
- ?>
- </section>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement