Bug #58636 | system Error reports while coloumn name = Dec (December) | ||
---|---|---|---|
Submitted: | 1 Dec 2010 18:36 | Modified: | 1 Dec 2010 20:54 |
Reporter: | Eli Cohen | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.0.91 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | change, dec, error, UPDATE |
[1 Dec 2010 18:36]
Eli Cohen
[1 Dec 2010 19:03]
MySQL Verification Team
Please see: http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html and look for dec.
[1 Dec 2010 19:41]
Eli Cohen
Thanks!! It really helped! I solved it by adding white space AND quotes. `Dec` = $value mysql_query("UPDATE $table SET hits = $count, this_year = $count_year, $today = $count_today, `$this_month` = $count_month WHERE (name = '$page')") or die(mysql_error()); Eli.
[1 Dec 2010 20:54]
Sveta Smirnova
Thank you for the feedback. closed as "Not a Bug" because last comment.