I am trying to run this query:
mysql_query("update group_data set title='$title', desc='$title' where groupid='$groupid'");
but the problem is that I get this error:
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 'desc='' where groupid='32'' at line 1
I could not see any problems in that query. I tried to update one value at a time; when I update the title filed only everything seems to work fine, but when I try to update the desc field I get the same error.
what is the problem?