Advertisement
Guest User

index.html

a guest
Dec 9th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. <?php
  2. include("config.php");
  3. ?>
  4. <html>
  5. <head><title>PAI - PHP</title></head>
  6. <body>
  7. <center>
  8. <h1>PAI - lab4</h1>
  9. <br />Tworzenie bazy danych
  10. <form action="#" method="POST">
  11. <input type="text" name="nazwa" placeholder="Podaj nazwe DB!"/><br />
  12. <input type="submit" name="baza" value="Utworz baze!"/>
  13. </form>
  14.  
  15. <br />Tworzenie tabeli (imie,nazwisko, rok urodzenia o nazwie $_POST['nazwaTabeli']; :
  16. <form action="#" method="POST">
  17. <input type="text" name="nazwaTabeli" placeholder="Podaj nazwe tabeli!"/><br />
  18. <input type="submit" name="tabela" value="Utworz tabele!"/>
  19. </form>
  20.  
  21. <br />Dodawanie rekordy do tabelii
  22. <form action="#" method="POST">
  23. <input type="text" name="doTabeli" placeholder="Nazwa tabeli gdzie dodac dane"/><br />
  24. <input type="text" name="imie" placeholder="Podaj imie"/><br />
  25. <input type="text" name="nazwisko" placeholder="Podaj nazwisko"/><br />
  26. <input type="text" name="rok" placeholder="Podaj rok urodzenia!"/><br />
  27. <input type="submit" name="sendRekord" value="Dodaj rekord!"/>
  28. </form>
  29.  
  30. <br />Zmien imie || nazwisko || rok po numerze ID
  31. <form action="#" method="POST">
  32. <input type="text" name="doTabeliUpdate" placeholder="Nazwa tabeli gdzie dodac dane"/><br />
  33. <input type="text" name="imieUpdate" placeholder="podaj inne imie"/><br />
  34. <input type="text" name="nazwiskoUpdate" placeholder="podaj inne nazwisko"/><br />
  35. <input type="text" name="rokUpdate" placeholder="podaj inny rok"/><br />
  36. <input type="text" name="numerID" placeholder="podaj numer ID"/><br />
  37. <input type="submit" name="sendUpdate" value="Zmien!"/>
  38. </form>
  39.  
  40. <br />Usuwanie danych z tabeli po numerze ID
  41. <form action="#" method="POST">
  42. <input type="text" name="doTabeliDelete" placeholder="Nazwa tabeli gdzie usunac dane"/><br />
  43. <input type="text" name="deleteID" placeholder="Podaj ID aby usunac rekord!"/><br />
  44. <input type="submit" name="deleteRecord" value="Usun rekord!"/>
  45. </form>
  46.  
  47.  
  48. <br />Wyswietl dane z bazy danych
  49. <form action="#" method="POST">
  50. <input type="text" name="doTabeliWyswietl" placeholder="Nazwa tabeli, ktora wyswietlic"/><br />
  51. <input type="submit" name="wyswietl" value="Wyswietl zawartosc tabeli!"/>
  52. </form>
  53. </center>
  54. </body>
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement