close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


"There is an error in your SQL syntax" error. PHP errors on, but no errors showing?

Thread began 2/02/2023 8:07 am by Nathon Jones Web Design | Last modified 2/04/2023 2:05 pm by Ray Borduin | 25 views | 1 replies |

Nathon Jones Web Design

"There is an error in your SQL syntax" error. PHP errors on, but no errors showing?

I'm having trouble with a MySQLi INSERT behaviour. This was working fine on a website, and we've haven't changed anything, so I can only assume that some scripting is out of date but I'm getting "There is an error in your SQL syntax." when submitting the form.

I'd included the following code, in an attempt to view the PHP error that was being generated:

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);

...and this mentioned something about curly brackets and an issue with the queryobj.php file, which I replaced with another more up to date version (31/03/2021) of that file.

Since then, I'm still getting the syntax error message, but no details of the php error?

I'm, therefore, completely unable to diagnose what the issue is. Is there anything else I can do?

Thank you.

Sign in to reply to this post

Ray BorduinWebAssist

You can open up the queryobj.php file and update the line:

$this->Debug = false;

and set it to true.... then it will give you the full error. You should change it back after since errors can sometimes include sensitive information.

Sign in to reply to this post
Did this help? Tips are appreciated...

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





Ease of use


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