1. Mam skrypt obsługujący formularz.
2. Skrypt działa - w sensie w tabeli pojawiają się prawidłowe wartości.
3. Nie pokazuje się podsumowanie "Dokonano zmian etc....".
4. Powinien wyświetlić się ponownie formularz, a nie ma.
Co zrobiłem nie tak?
<?php //If the submit button has been pressed { include "connect_db2.php"; // Retrieve the posted pilot information. $lot_id=$_POST['lot_id']; $data=$_POST['data']; $regist=$_POST['regist']; $pilot=$_POST['pilot']; $query1 = "select * from krajowe where lot_id = '$lot_id' " ; $i=0; while ($i < $num) { $query = "INSERT INTO rezerwacje SET data='$data' , regist='$regist' , pilot='$pilot' , info='On time' , numer_lotu='$numer_lotu', odlot='$odlot', przylot='$przylot' "; if ($result) }} // Inlude the insertion form include "editform1n.php"; ?>
Kretyn ze mnie.
Zabrakło
<? ++$i; } ?>
Sorki za zamieszanie.