Jump to content

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
https://forums.phpfreaks.com/topic/274890-sql/
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
https://forums.phpfreaks.com/topic/274890-sql/#findComment-1414680
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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