close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error message

Thread began 8/21/2011 10:26 am by biz295654 | Last modified 8/22/2011 12:19 pm by biz295654 | 1094 views | 6 replies |

biz295654

Error message

I'm assisting a colleague with a project. I am not using my owner server for this project. It is a GoDaddy host, windows flavor.

I have encountered an error message and not sure what to do to correct.

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, address1, address2, citycode, city, state, zip, country, phone, fax, name,' at line 1

This is on the Update page and Insert pages.

I can see the records on the results page.

Thanks much.

Sign in to reply to this post

neilo

Someone with more knowledge of mySql than myself will hopefully confirm, but I suspect that the problem you are experiencing arises from the fact that your column name 'desc' is a reserved word in mySql.

You should change that to something else, and you should then be OK.

reserved-words.html

Sign in to reply to this post

biz295654

ah! thank you!!

Sign in to reply to this post

Jason ByrnesWebAssist

neilo, you are correct, the column name 'desc' is the cause of the problem because it is a reserved word.

'desc' is used for setting the order of the MySQL ORDER BY clause:

options are ascending:
SELECT * FROM table ORDER BY column ASC

or descending:
SELECT * FROM table ORDER BY column DESC

Sign in to reply to this post

biz295654

After neilo pointed me in the right direction, I found a handy pdf online for future reference:

sqlreservewords.pdf

Thanks again.

Sign in to reply to this post

Jason ByrnesWebAssist

neilo also linked you to the mysql 5.1 reference page which list all of the reserved word:
reserved-words.html


Reserved words change form version to version, so checking the MySQL manual page for your version will give a more complete list.

Sign in to reply to this post

biz295654

Yes, thank you again. I wanted to print it out, so the pdf was just a handy "cheat sheet."

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...