Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body>
- <form class='' action='' method='post'>
- Id ucznia:<input type='text' name='idu' value=''><br>
- Imie:<input type='text' name='imie' value=''><br>
- Nazwisko:<input type='text' name='nazwisko' value=''><br>
- Adres:<input type='text' name='adres' value=''><br>
- <input type="submit" name='p1' value='Wykonaj'>
- </form>
- <?php
- $id=$_POST['idu'];
- $imie=$_POST['imie'];
- $nazwisko=$_POST['nazwisko'];
- $adres=$_POST['adres'];
- $polaczenie=mysqli_connect( 'localhost' , 'root' , '' , 'dziennik' );
- $wynik=mysqli_query($polaczenie, "insert into uczen values('$id', '$imie', '$nazwisko', '$adres')");
- while ($rekord=mysqli_fetch_assoc($zapytanie));
- //mysqli_free_result($wynik);
- mysqli_close($polaczenie);
- ?>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement