So, I tried to add fields to the user table that could only be filled out while the user was logged in -- i.e., they don't appear in the registration form, but they do appear in useredit.
This broke the registration form. It couldn't figure out how to add stuff to the user table. So, I did the sensible thing, and specified the fields to process during registration.
From:
So, then registration worked just fine, but no one could log in, because the form kept insisting that the usernames were not in the table -- including my admin username which had been there since install, long before I started screwing with the tables and forms. I changed back the registration query, and login worked again, but no one could register.
I'm sure this is just me being a total dumbass, but can someone give me a clue?
This broke the registration form. It couldn't figure out how to add stuff to the user table. So, I did the sensible thing, and specified the fields to process during registration.
From:
- Code:
$q = "INSERT INTO ".TBL_USERS." VALUES ('$username', '$password', '0', $ulevel, '$email', $time)";
- Code:
$q = "INSERT INTO ".TBL_USERS." (username, password, userid, userlevel, email, timestamp) VALUES ('$username', '$password', '0', $ulevel, '$email', $time)";
So, then registration worked just fine, but no one could log in, because the form kept insisting that the usernames were not in the table -- including my admin username which had been there since install, long before I started screwing with the tables and forms. I changed back the registration query, and login worked again, but no one could register.
I'm sure this is just me being a total dumbass, but can someone give me a clue?