Open siddiquedu opened 9 years ago
solved by me................Sorry for disturb
No worries. Could you post the solution?
@siddiquedu what was your solution ?
I would like to know the solution for this as I can update a user including the password. I did however have to change the password variable in my connection script as when running the update user it kept sending $password from the connection script thanks to the debug query in the tutorial.
I cannot add a new user though as all I get is
User could not be added because: Column count doesn't match value count at row 1
INSERT INTO users (firstname, lastname, password, status) VALUES ('john', 'prendergast', 'pass' '1')
My insert query is
else { $action = 'added'; $q = "INSERT INTO users (firstname, lastname, password, status) VALUES ('$first', '$last', '$_POST[password]' '$_POST[status]')"; }
I have just re-read the query and noticed a comma missing, the new query is
$q = "INSERT INTO users (firstname, lastname, password, status) VALUES ('$first', '$last', '$_POST[password]', '$_POST[status]')";
and it works
I can't add user although get all values correctly. intentionally i gave different pass word but shows no error sms. here is my code. Could you say where might be i did wrong.
in queries.php=>
in user.php=>