Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <?php
  2. $link = mysqli_connect("localhost", "root", "") or die ("sprawdz polaczenie z serwerem");
  3. mysqli_select_db($link, "ankieta");
  4. $dodaj = "INSERT INTO osoby (imie, nazwisko, wiek, login, haslo, plec, wyksztalcenie)
  5. VALUES ('{$_POST['imie']}','{$_POST['nazwisko']}','{$_POST['wiek']}','{$_POST['login']}','{$_POST['pass']}','{$_POST['plec']}','{$_POST['nauka']}')";
  6.  
  7.  
  8. if(!mysqli_query($link, $dodaj))
  9.  
  10.  
  11. {
  12. die(mysqli_error($link));
  13. }
  14.  
  15.  
  16. print("<br/>Wprowadzono dane do bazy");
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement