forked from Keinstah/FluxCP_Addons-VoteForPoints
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ` quotation marks for non-value SQL words.
This fixes some problems when SQL queries don't run correctly.
- Loading branch information
1 parent
cdfa55f
commit 76f456f
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76f456f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please feel free to use your native language. I will use Google translate.
And I think your problem is that it says
ragnarok main.ragnarok_main
it is not supposed to repeat. Check your configuration for vote 4 points. See if the tables are correct.76f456f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Haikenz Hi there. Would you mind exporting your database (minus sensitive data) and forking your FluxCP so I can take a look? Hope you've fixed it somehow by now.
Suggestion
Try executing the following code right before the SQL query execution where
$sql
is your SQL query, to see if the SQL is being formed correctly:Where do I put this code?
To find out where exactly you need to put this, look for error number 3 on the PHP source code.
The critical clue to your bug is the repeated
ragnarok main.ragnarok_main
table name. So try to follow on that clue as to why your query fails.