PDA

View Full Version : سوال: این خطا یعنی چه ؟



ahmadbadpey
پنج شنبه 15 اسفند 1387, 16:29 عصر
این خطا رو وقتی می خواستم بوسیله یه editor (fckeditor ) داده ها رو به دیتا بیس بفرستم بهم داد
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 'MsoNormal" style="margin: 0cm 0cm 0pt;" dir="rtl"><span class="a

kavoshgar63
پنج شنبه 15 اسفند 1387, 16:32 عصر
اول بگین فیلد داده ای شما در mysql چگونه و از چه نوعی تعریف شده؟

ahmadbadpey
پنج شنبه 15 اسفند 1387, 16:43 عصر
از نوع longtext

ahmadbadpey
پنج شنبه 15 اسفند 1387, 16:54 عصر
این هم کد من :

mysql_query("insert into `news` (`news_id`, `news_title`, `news_text`, `news_textfull`,
`news_pic`,`category`,`author`,`news_time`,`news_d ate`,`news_day`,`breaking_news`,`display_date`,`vi ew_count`,`serious`)
values
('', \"$news_title\", \"$news_text\", \"$news_textfull\",\"itcom/$path\", \"$category\",\"$author\", \"$time\", \"$jdate\",\"$day\",\"$breaking_news\",\"$display_date\",\"0\",\"$serious\") ",$conn) or die(mysql_error());

ayub_coder
جمعه 16 اسفند 1387, 12:21 عصر
به جای استفاده از "\ از تک کوتیشن ' خالی استفاده کن ...