mysql_query("INSERT INTO `enedeon_chat`('login','tresc','data','mapa') VALUES('$user[login]','$tresc','$data','$user[maps]');") OR die(mysql_error());
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 ''login','tresc','data','mapa') VALUES('Bartek4175','Test cgat','2014-06-29 14:40' at line 1