Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="pl">
  3. <head>
  4. <title>baza danych</title>
  5. <meta charset="UTF=8"/>
  6. </head>
  7. <body>
  8. <?php
  9. $conn=mysqli_connect("localhost", "root", "", "sklepmuzyczny");
  10. if(!$conn){
  11. die("Bład");
  12. }
  13. $q="INSERT INTO uzytkowicy (id, imie, nazwisko, adres, telefon) VALUES (NULL, 'Jan', 'Kowalski', 'Warszawa', '1234');";
  14.  
  15. $wynik=mysqli_query($conn, $q);
  16. if(!$wynik){
  17. echo "bład zapytania";
  18. }
  19. mysqli_close
  20. ?>
  21. </body>
  22.  
  23.  
  24. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement