Не срабатывает INSERT-запрос: 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Не срабатывает INSERT-запрос: 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=80559#post479806Функция mysql_query() не возвращает результат, она возвращает дескриптор, по которому можно получить результат. Т.е. этот фрагмент лучше переписать так "?php...Не срабатывает INSERT-запрос: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearThu, 5 May 2011 11:25:53 +0300cheopsНе срабатывает INSERT-запрос: 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=80559#post479805в кавычки возьмите, а не в апостриф $lineНе срабатывает INSERT-запрос: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearThu, 5 May 2011 11:21:54 +0300LotanaenНе срабатывает INSERT-запрос: 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=80559#post479804Теперь не могу понять почему не работает вот эта часть кода $result=mysql_query("SELECT * FROM `trika_farm` WHERE name = `$line`"); printf($result);...Не срабатывает INSERT-запрос: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearThu, 5 May 2011 11:10:00 +0300maxim14Не срабатывает INSERT-запрос: 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=80559#post479802Спасибо! Но теперь получилось вот что Column count doesn't match value count at row 1 Понимаю что это связано со...Не срабатывает INSERT-запрос: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearThu, 5 May 2011 10:34:57 +0300maxim14Не срабатывает INSERT-запрос: 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=80559#post479800У вас для конструкции VALUES нет завершающей круглой скобки.Не срабатывает INSERT-запрос: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearThu, 5 May 2011 10:31:14 +0300cheopsНе срабатывает INSERT-запрос: 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=80559#post479798Изменил на это : $query = (" INSERT INTO`trika_farm`( `name`, `made`, `cmade`, `valid`,`price`, `prodprice`, `GNVLS`, `cncode`, `barcode`) VALUES ('$line','$line','$line',$line,$line,'$line',$line,$line");...Не срабатывает INSERT-запрос: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearThu, 5 May 2011 10:08:42 +0300maxim14Не срабатывает INSERT-запрос: 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=80559#post479796Строковые значения нужно заключать в кавычки, у вас же значения в конструкции VALUES идут без кавычек, так как будто они...Не срабатывает INSERT-запрос: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearThu, 5 May 2011 09:51:23 +0300cheopsНе срабатывает INSERT-запрос: 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=80559#post479795 "?php include "setting.php"; $arr = file( "tyuy.csv" , FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES | FILE_BINARY); $sql = array(); for($i = 0;...Не срабатывает INSERT-запрос: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nearThu, 5 May 2011 09:40:39 +0300maxim14