<? $edit = $_GET['edit']; if($_GET['edit'] == $edit){ $id = $row['ID']; $nazwa = $row['nazwa']; $kategoria = $row['kategoria']; $dodal = $row['dodal']; $data = $row['data']; $kod = $row['kod']; $zdjecie = $row['ID']; $width = 425; $height = 355; if($id == $edit){ <form action="paneladmina.php?name=edytujfilm&edit='.$id.'&save=true" method="post"> <tr> <th colspan=2 class=cat>Edytuj: '.$nazwa.'</th> </tr> <tr> <th>Nazwa:</th> <th><input type="text" name"nazwa" value="'.$nazwa.'" class=form4></th> </tr> <tr> <th>Kategoria:</th> <th><input type="text" name"nazwa" value="'.$kategoria.'" class=form4></th> </tr> <tr> <th>Dodał:</th> <th><input type="text" name"nazwa" value="'.$dodal.'" class=form4></th> </tr> <tr> <th>Data:</th> <th><input type="text" name"nazwa" value="'.$data.'" class=form4></th> </tr> <tr> <th>Kod:</th> <th><input type="text" name"nazwa" value="'.$kod.'" class=form4></th> </tr> <tr> <th colspan=2><input type="submit" name="submit" value="Zapisz" class=form4></th> </tr> <tr> <th colspan=2><hr></th> </tr> </form> '); }} } if($_GET['save'] == "true"){ $idedit = $_GET['edit']; nazwa='$nazwa', kategoria='$kategoria', data=$data, dodal=$dodal', kod='$kod' WHERE ID='$idedit' LIMIT 1"); if($save2){ }} ?>
Bład zaden sie nie wyswietla ani nie wyswietla sie "Zapisano" czyli nie zmienia danych w bazie. Gdzie jest błąd??