![]() |
register function
What's wrong with it? :S:S
php Code:
php Code:
Gives me "Something went wrong!" all the time I try to register :S |
Try changing:
PHP Code:
PHP Code:
|
Yea, it said "Successfully registered!", but when I check the database, the table is empty =//
|
Oops, I made an error. Remove the ! from the condition.
PHP Code:
PHP Code:
|
The SQL query is malformed.
`%s` = '%s, is missing a single quotation mark before the comma. You really, really need some form of error reporting -- I can't imagine posting every little problem here being an efficient solution to your typing mistakes. |
Also, if you are going to the trouble of getting each column name, it would be much easier to read and less coding if you make a function to do all the above for you, and you make an array to populate the query....
|
This will give you some nice feedback on the syntax errors:
php Code:
|
Yea, I have no idea what you talk about bluesaga :P
Thanks salathe! I also took wildhoneys advice, and after I fixed the thing that salathe pointed out, it gave me this: Code:
Unknown column 'user_name' in 'field list' |
That means that there is no user_name column in the table. :)
|
|
Are you sure you're working on the right db ?
Are you sure of the content of your hashtable attribute "col" ? solution of this kind of problem is often an oblivion :) |
LOOL
Yea, rofl.. fixed it ;P Thanks! |
Let me guess, wrong database :) ?
|
hahha, yeaaa, lol ;)
I'm such a fool :p |
| All times are GMT. The time now is 05:46 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0