Jump to content

Schweppers

Recommended Posts

Hi, I'm trying to make a forum for my website and I keep getting this error when trying to create a new topic

 

Error:

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 10

 

I don't know what page this could be referring to.

I have 2 pages to connect to two different DB's

one being:

config.inc.php

the other being:

connect.php

 

I don't know what all more information you need to help with this, comment and I'll tell you more if needed.

Link to comment
Share on other sites

Well, you are making a query and you have some mistake in it. Either you missed or put an extra comma, forgot to enclose a MySQL function with braces, no idea really. What I usually do when I receive such error, is that I copy my SQL query and go to PHPMyAdmin and paste the query in the "SQL" tab. There you will see a more detailed explanation of the problem.

 

Or alternatively, you could just post the code you use to make a new topic...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.