Troubles with queries
I've been trying to code an anti brute-force function, however without success. I can't seem to get the queries to execute correctly, and the page is returning the error "Database error 1054 - Unknown column '0' in 'field list'". Does anyone have an idea of how to make the queries execute correctly? Any help is greatly appreciated! I hope to post the code as a mod for 1.3.3 once everything works correctly. ^^
Here's the function: PHP Code:
|
Well I see two problems:
1. The database insert query is clearly incorrect, the syntax should be: PHP Code:
PHP Code:
|
Thanks HoF! The data's inserting into the database now, and the errors are gone. :D
|
Great, glad I can help. Lemme know if you encounter any further issues. ^^
|
I would change the error message from serious error to "too many invalid log ins, try again later"
Saying there has been a serious error will make the user think something is wrong with your site. Furthermore when they report this error the admin may have no idea how it was generated in the first place. |
All times are GMT -5. The time now is 05:12 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.