You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forumYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511414даYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 23:46:08 +0300taskYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511413Спасибо большое,понял в какую сторону капать! Кстати по поводу взлома $_GET = intval($_GET); достаточно?)))You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 23:40:18 +0300соткаYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511411SELECT COUNT(*) FROM WHERE id_position = 5 - отсутствует имя таблицы, а почему, смотрите, либо подключение переменных не в том...You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 23:36:02 +0300taskYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511410не определена переменная? Ладно пойду просмотрю скрипт еще раз! Всем спасибоYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 23:34:16 +0300соткаYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511408А я и не говорил, что в этом причина. Это просто небрежность, которая может когда либо привести к неожиданному результату,...You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 23:32:55 +0300taskYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511407$_GET = intval($_GET); не работает и по вашему тоже(((You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 23:28:42 +0300соткаYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511406А вы считаете, что в таком виде вставлять данныне в запрос не опасно? И вообще, правильно это так - $_GET,...You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 23:26:08 +0300taskYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511405SELECT COUNT(*) FROM WHERE id_position = 5 выводит и всеYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 23:25:43 +0300соткаYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511404вы имеете ввиду нет фильтрации? id_position =". $_GETYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 23:23:18 +0300соткаYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511403Вы перед $cnt = mysql_query($query); вставьте exit( $query ); и проверьте. Если запрос такой как написан выше, то ищите где...You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 23:20:51 +0300SfinksYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511402Взлома не боимся?You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 23:20:12 +0300taskYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511399config.php $tbl_comment = 'system_comment'; с этим нормик все ! $query = "SELECT COUNT(*) FROM $tbl_comment WHERE id_position =". $_GET; $cnt...You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 23:06:19 +0300соткаYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511397Стоп! А FROM чего? SELECT COUNT(*) FROM WHERE id_position = '5'- где имя таблицы??? $tbl_comment - это реально переменная с...You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 22:56:16 +0300SfinksYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511395не помогает(You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 22:46:24 +0300соткаYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511394какие-то строгие проверки включены в настройках, ну и не принимает ЦЕЛОЕ в кавычках. И правильно делает. Все должно быть по...You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 22:18:21 +0300SfinksYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearhttp://softtime.ru/forum/read.php?id_forum=3&id_theme=85947#post511391Всем привет! проверил скрипт на локальном хосте(все работает ! Версия 5.1.40-community),залил на хост и стал ругать на запросы в условиях...You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearWed, 28 Mar 2012 21:09:11 +0300сотка