2018-11-29, 01:15 PM
(2018-11-28, 03:51 PM)lisa Wrote: [ -> ]There's a problem Houston!!! The registration form does show uppercase when you enter it, but the username still gets put in lowercase when it goes into the database...
So it looks like this change ONLY effects what you see, not reality... I'm looking for a new solution.....
CREATE TRIGGER forceupper BEFORE INSERT ON mybb_users FOR EACH ROW SET NEW.username = UPPER(NEW.username);
Problem solved!!
Even if the user enters a username with lowercase letters, the mysql trigger will change it to uppercase. Exactly what I want.
CREATE TRIGGER forceupper BEFORE INSERT ON mybb_users FOR EACH ROW SET NEW.username = UPPER(NEW.username);
it worked!