Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="pl">
- <head>
- <title>baza danych</title>
- <meta charset="UTF=8"/>
- </head>
- <body>
- <?php
- $conn=mysqli_connect("localhost", "root", "", "sklepmuzyczny");
- if(!$conn){
- die("Bład");
- }
- $q="INSERT INTO uzytkowicy (id, imie, nazwisko, adres, telefon) VALUES (NULL, 'Jan', 'Kowalski', 'Warszawa', '1234');";
- $wynik=mysqli_query($conn, $q);
- if(!$wynik){
- echo "bład zapytania";
- }
- mysqli_close
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement