Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $user='root';
- $password='';
- $id=$_POST['id'];
- $imie=$_POST['imie'];
- $nazwisko=$_POST['nazwisko'];
- $data=$_POST['data'];
- $miejsce=$_POST['miejsce'];
- $conn = mysqli_connect('localhost',$user,$password) or die ("Błąd Logowania");
- mysqli_select_db($conn,'4iag1') or die ("Błąd wyboru bazy");
- $wynik=mysqli_query($conn," INSERT INTO Osoby values ('$id','$imie','$nazwisko','$data','$miejsce')");
- ?>
- <form method="POST" action="">
- ID<input type="text" name="id"></br>
- Imie<input type="text" name="imie"></br>
- Nazwisko<input type="text" name="nazwisko"></br>
- data<input type="date" name="data"></br>
- miejsce<input type="text" name="miejsce"></br>
- <input type="submit" value="Dodaj">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement