#1
|
||||
|
||||
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:
Last edited by pachoofoosh; 08-05-2013 at 09:19 AM. |
#2
|
||||
|
||||
Well I see two problems:
1. The database insert query is clearly incorrect, the syntax should be: PHP Code:
PHP Code:
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
||||
|
||||
Thanks HoF! The data's inserting into the database now, and the errors are gone. :D
|
#4
|
||||
|
||||
Great, glad I can help. Lemme know if you encounter any further issues. ^^
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#5
|
||||
|
||||
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.
__________________
https://gemnode.com Free Hosting for Mysidia Adopt Sites Just join our forum and request your free hosting account |
Tags |
bruteforce, database, errors, queries |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Login troubles & other things | SmaffyBuns | Questions and Supports | 7 | 11-21-2012 03:44 PM |
Having troubles Finding the Right Host and How to Install the Mys Script. | Aasixx | Questions and Supports | 7 | 12-13-2011 03:16 PM |
Question about Queries? | Tsuntsun | Questions and Supports | 2 | 11-03-2011 02:57 PM |
Anyone care to enlighten me as to why 188 queries are used on a page? | Arianna | Questions and Supports | 5 | 05-14-2010 10:21 AM |
MySQL queries ..? | Quillink | Questions and Supports | 3 | 07-11-2009 12:47 PM |
What's New? |
What's Hot? |
What's Popular? |