$sql = mysql_query("INSERT INTO zapisi(title, news, avtor) VALUES ('".mysql_real_escape_string("$title_trim")."','".mysql_real_escape_string("$text_trim")."','$admin_name'");
Ошибка или нет, а то выдает ошибку?
Ошибка:
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 '' at line 1