בעיה עם עדכון פשוט mysql
היי אני רוצה לעדכן ולכן כתבתי הקוד הזה: $update_query= "UPDATE news SET title = '{$title}', short_text = '{$desc}', news_date = {$date} WHERE id = {$id}"; $update_result=mysql_query($update_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 near '' at line 1 אין שום בעיה בשורה 1, כל המישתנים בסדר (והם עוברים עם הלחיצה על הכפתור) וכל השדות בבסיס הנתונים נכונים. מה אני מפספס כאן?
היי אני רוצה לעדכן ולכן כתבתי הקוד הזה: $update_query= "UPDATE news SET title = '{$title}', short_text = '{$desc}', news_date = {$date} WHERE id = {$id}"; $update_result=mysql_query($update_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 near '' at line 1 אין שום בעיה בשורה 1, כל המישתנים בסדר (והם עוברים עם הלחיצה על הכפתור) וכל השדות בבסיס הנתונים נכונים. מה אני מפספס כאן?