<?php if ($_SESSION['admin'] != "tak") { } else { if ($akcja == "edytuj") { include("db.php"); for ($i=0; $i<=99; $i++) { $tab_nazwa = $_POST['nazwa'][$i]; } } include("db.php"); $db_tabela = "lista"; $row[] = $wiersz['nazwa']; } echo" <!-- Tutaj znajduje się formularz --> "; } ?>
Po wysłaniu wyskakuje błąd:
Kod
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET nazwa='wa0' WHERE id='0'' at line 1
I tak dla każdego zapytania...
Pomoże mi ktoś znaleść w tym błąd?