SHARE
TWEET

Untitled

a guest Oct 16th, 2019 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top