daily pastebin goal
23%
SHARE
TWEET

Untitled

a guest Oct 23rd, 2018 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <title>Komis</title>
  4. <meta charset="utf-8"/>
  5. <link rel="stylesheet" type="text/css" href="styl.css"/>
  6. </head>
  7. <body>
  8.  
  9. <div id="baner">
  10. <h1>WYNAJEM SAMOCHODÓW</h1>
  11. </div>
  12.        
  13. <div id="panellewy">
  14. <h1>Skrypt 1</h1><?php
  15. $baza2 = mysqli_connect("localhost", "root", "", "wynajem")or die('elo1');
  16. $zap2 = "SELECT id,model,kolor FROM samochody WHERE marka='toyota' AND rocznik=2014";
  17. $result2= mysqli_query($baza2,$zap2) or die('elo2');
  18. $row2=mysqli_fetch_row($result2);
  19. echo "$row2[0] Toyta $row2[1]. Kolor: $row2[2] ";
  20. mysqli_close($baza2);
  21. ?><br/>
  22. <h1>Skrypt 2</h2>
  23. <?php
  24. $baza2 = mysqli_connect("localhost", "root", "", "wynajem")or die('elo1');
  25. $zap2 = "SELECT id,marka,model,rocznik FROM `samochody`";
  26. $result2= mysqli_query($baza2,$zap2) or die('elo2');
  27.  
  28. while ($row2=mysqli_fetch_row($result2)){
  29. echo "$row2[0] $row2[1] $row2[2] $row2[3] <br/>";}
  30. mysqli_close($baza2);
  31. ?>
  32. </div>
  33.  
  34. <div id="panelprawy">
  35. <h1>Skrypt 3</h2>
  36. <br>
  37. <?php
  38. $baza2 = mysqli_connect("localhost", "root", "", "wynajem")or die('elo1');
  39. $zap2 = "SELECT samochody.id,model, telefon FROM samochody,zamowienia WHERE samochody.id=zamowienia.Samochody_id";
  40. $result2= mysqli_query($baza2,$zap2) or die('elo2');
  41. while ($row2=mysqli_fetch_row($result2)){
  42. echo "$row2[0] $row2[1] $row2[2] <br/>";}
  43. mysqli_close($baza2);
  44. ?>
  45.  
  46. </div>
  47.        
  48. <div id="stopka">
  49.             <h3>STRONA KOMIS</h3><br>
  50.             Strone wykonał: 99043006391
  51. </div>
  52. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top