Hi all. I have a table that I created that contains user information (e.g. username, password, last name, first name). When I do an insert or an update, the password field is always null and never gets set. The other fields are set but not the password field. Here are the statements that I'm using in my java bean:
sql = "UPDATE user SET username='" + getUsername() + "'," + "password='" + getPassword() + "', " + "lname='" + getLname() + "', " + "fname='" + getFname() + "' WHERE userID = " + ID + ";";
sql = "INSERT INTO user (username, password, lname, fname) " + "VALUES('" + getUsername() + "', '" + getPassword() + "', '" + getLname() + "', '" + getFname() + "');";
I'm new to MySQL. Does it treat that field specially? What can I do to get it to set? When I run the statements in the MySQL SQL Editor, all the fields get set but when I run it in my Java Bean, they don't.
Thanks for your help in advance.
sql = "UPDATE user SET username='" + getUsername() + "'," + "password='" + getPassword() + "', " + "lname='" + getLname() + "', " + "fname='" + getFname() + "' WHERE userID = " + ID + ";";
sql = "INSERT INTO user (username, password, lname, fname) " + "VALUES('" + getUsername() + "', '" + getPassword() + "', '" + getLname() + "', '" + getFname() + "');";
I'm new to MySQL. Does it treat that field specially? What can I do to get it to set? When I run the statements in the MySQL SQL Editor, all the fields get set but when I run it in my Java Bean, they don't.
Thanks for your help in advance.