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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Syntax Error - Update Error

Thread began 2/25/2010 10:09 pm by champcorp393068 | Last modified 2/26/2010 1:54 pm by Eric Mittman | 677 views | 1 replies |

champcorp393068

Syntax Error - Update Error

Hello,

I have 2 error occurances:

1. In the attached "pivisitors_Multi_Insert.php" file the following error is displayed upon Submit:
"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"

I have checked (), but can't seem to find the error.

2. In the attached "pivisitors_Update.php" form, the update entered is updating all entries in the table. (i.e. If "John" is entered in the "First Name" field, all First Names in the table change to "John"). The same happens for all fields except the email field.

Thanks for your assistance.

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

Eric Mittman

I'm not sure which server behavior is giving you this error on your insert page because you have both a single insert and multi insert that are going into the same table with the same trigger. You should remove the single insert if you are planning on doing a multiple insert. Once you have done that you should run a test of inserting a single record to see if you get the error with only the multi insert.

On your update page it seems that your where clause is causing the multiple records to be updated. How have you configured this update server behavior? To see why it is doing this you can print out the update query. Attached is a copy of the page with the updated code to print out the query, load it and test it to see what you get.

Attached Files
pivisitors_Update.zip
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...