Advertisement
Guest User

Untitled

a guest
Oct 9th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <?php
  2. $servername = 'localhost';
  3. $username = 'root';
  4. $password = '';
  5. $database = 'baza1';
  6.  
  7. $imie = $_POST['imie'];
  8. $nazwisko = $_POST['nazwisko'];
  9. $id = $_POST['id'];
  10. $login = $_POST['login'];
  11. $haslo = $_POST['haslo'];
  12.  
  13.  
  14. echo '<p>konto</p>'.$_POST['imie'].' '.$_POST['nazwisko'].'<p>zostało zarejestrowane w bazie</p>';
  15.  
  16.  
  17. $connect = mysqli_connect($servername, $username, $password, $database);
  18.  
  19. $zapytanie1 = 'insert into uzytkownicy(imie, nazwisko, adres, telefon) values ($imie, $nazwisko, $adres, $telefon)';
  20. mysqli_query($connect,$zapytanie1);
  21. //create user 'user1'@
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement