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

mysqli insert record returns "There is an error in your SQL syntax."

Thread began 2/12/2015 3:29 pm by markhaynes75235 | Last modified 2/13/2015 12:16 pm by Jason Byrnes | 2518 views | 6 replies |

markhaynes75235

mysqli insert record returns "There is an error in your SQL syntax."

I've got a prototype website that I'm working on. I'll send the URL in a private message. The home page has a Contact form in a mega menu that uses an AJAX Contact Form I got from Code Canyon @ www.codecanyon.net (I was unable to get Universal Email to work with a form in the MegaMenu layout, so I used the AJAX Contact Form instead. The form action posts to a contact.php page, and was working fine before I inserted the WA MySQLi Insert Record Server Behavior. When I apply the MySQLi Insert Record Server Behavior usng WA Form Data to enable accessing the external form on the megamenu on the contact.php page, then upload the files to my server (including the queryobj.php) on testing the contact form I get "There is an error in your SQL syntax" message, nothing else. I've attached the contact.php privately.

Thanks for your help as always

Sign in to reply to this post

markhaynes75235

mysqli insert record returns "There is an error in your SQL syntax."

Originally Said By: markhaynes75235
  I've got a prototype website that I'm working on. I'll send the URL in a private message. The home page has a Contact form in a mega menu that uses an AJAX Contact Form I got from Code Canyon @ www.codecanyon.net (I was unable to get Universal Email to work with a form in the MegaMenu layout, so I used the AJAX Contact Form instead. The form action posts to a contact.php page, and was working fine before I inserted the WA MySQLi Insert Record Server Behavior. When I apply the MySQLi Insert Record Server Behavior usng WA Form Data to enable accessing the external form on the megamenu on the contact.php page, then upload the files to my server (including the queryobj.php) on testing the contact form I get "There is an error in your SQL syntax" message, nothing else. I've attached the contact.php privately.

Thanks for your help as always  
Sign in to reply to this post

Jason ByrnesWebAssist

to help troubleshoot, open the webassist/mysqli/queryobj.php file and enable debug mode.

change:
$this->Debug = false;

to:
$this->Debug = true;

Sign in to reply to this post

Jason ByrnesWebAssist

I Just tested your form and it seams you have it working now?

for me it showed the Email Sent Successfully message.

Sign in to reply to this post

markhaynes75235

I was able to find the problem - I had added a field to the local db but forgot to add it to the remote one. Thanks for the pointer on turning on Debug. Meanwhile instead of loading the confirmation in the megamenu as it was doing before, I get a new page with the confirmation. See screen shot of the confirmation in the megamenu.

Sign in to reply to this post

markhaynes75235

Hi Jason: I was able to get it to work by reloading the javascript file that controls the display. I've attached the one that was broken and the one that works for your edification. The jigowatt_bak.js is the one that did not work. the jigowatt.js works.

Attached Files
jquery.jigowatt.js
jquery.jigowatt_bak.js
Sign in to reply to this post

Jason ByrnesWebAssist

ok, glad to hear you found the problem.

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