Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <?php
  2. $link=mysqli_connect("localhost", "root", "")
  3. or die("Błąd-nie można połączyć się z serwerem baz danych");
  4. mysqli_select_db( $link, "ankieta");
  5. $result=mysqli_query($link, "CREATE TABLE osoby (id_osoby INT AUTO_INCREMENT PRIMARY KEY not null,
  6. imie varchar (30) not null,
  7. nazwisko varchar (30) not null,
  8. wiek int(10) not null,
  9. login varchar (30) not null,
  10. haslo varchar (30) not null,
  11. plec varchar (1) not null,
  12. wyksztalcenie varchar (30) not null)")
  13. or die("Błąd-nie można utworzyć tabeli");
  14.  
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement