Click here to Skip to main content
15,902,635 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
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 'rank, days, used, used_by) VALUES (0, 'WRZiUT7gRU', '1', '1', 0, '')' at line 1


Line was is just
<?php


What I have tried:

i tried this error in your SQL syntax at line 1[^]
Posted
Updated 8-Dec-21 20:32pm
Comments
Richard Deeming 30-Nov-21 5:01am    
Simple: you fix the secret error in your secret code.

Seriously, how do you expect anyone to help you fix an error in your code when you haven't shown us the relevant parts of your code?

If you really can't work out what the problem is, then click the green "Improve question" link and update your question to include the relevant parts of your code.
OriginalGriff 30-Nov-21 5:06am    
And DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalization if you want to be taken seriously.
Richard MacCutchan 30-Nov-21 6:13am    
You have too many values. And the error message is referring to line 1 of the SQL statement, not line 1 of the PHP file.
CHill60 30-Nov-21 8:35am    
@User-15412326 Please post the code that contains your full SQL statement or we cannot help you at all
Rebecca2002 1-Dec-21 6:04am    
please post your full code. the mistake is somewhere else

1 solution

Always include relevant code/query in your question for better responses.

There're couple of reasons (Reserved Words, Missing Data, Mistyped Commands, Obsolete Commands) for this error, check this article & fix it yourself.
MySQL 1064 Error: You have an error in your SQL syntax – InMotion Hosting Support Center[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900