mysql_query("INSERT INTO zlecone ('nazwa', 'data', 'kto') VALUES ('".$_POST[n]."', '".$dat."', '".$_SESSION[login]."')") or die(mysql_error());
No i błąd:
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 ''nazwa', 'data', 'kto') VALUES ('.......', '02.07 13:11', 'syryls')' at line 1