close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

MySQL Error

Thread began 4/07/2011 9:22 am by atstech | Last modified 4/07/2011 10:32 am by Jason Byrnes | 1138 views | 2 replies |

atstech

MySQL Error

Using latest fresh install of DataAssist, PHP, MySQL, and Dreamweaver CS5

I created my pages with DataAssist Wizard. All I need is the Results and Details.php pages. I can pull up the results fine. However I get this error when I click on the details button for any of the results:

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 'limit, eduHSname, eduHSloc, eduHSyears, eduHSdegree, eduHSgpa, eduHSgpaScale, ed' at line 1

The only way I can remove the error is if I open the recorset for the details page and remove all the variables, Paramid, ParamSessionid, and Paramid2. Then I delete "WHERE id = Paramid OR ( -1= Paramid2 AND id= ParamSessionid)" from the SQL statement. Then I switch to Simple View and choose id for the filter = URL Parameter id.

I'm not sure what the problem is because I have successfully used DataAssist many times. Can you tell by looking at my page (attached) what the problem is?

Attached Files
dataassist.zip
Sign in to reply to this post

atstech

After posting my message, I tried going back to work around the problem. I still received the error. Why it worked once and not again I do not know. So then I noticed that when I go back into the details recordset, the "selected" option is choosen instead of "All". So I changed my SELECT statement manually to SELECT * from application. This seems to be working now. Still though, I should not have to be doing this as a work around. I never had too before. Thanks for any help.

Sign in to reply to this post

Jason ByrnesWebAssist

the problem is caused by the column name "limit" in your table.

limit is a reserved word in SQL and should be avoided as a column name.

a full list of SQL reserved words can be found here:
reserved-words.html

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...