Advertisement
Guest User

Untitled

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