stelthius Posted July 13, 2009 Share Posted July 13, 2009 Hello all, im using $passReset = mysql_query("UPDATE users SET password='$db_password' WHERE email_address='$email_address'"); To update the users password when they reset it but i also need to alter FLAG to 1 so it will bring up a alert for them to change there password from the one just sent to them, is it possible to do this ? Link to comment https://forums.phpfreaks.com/topic/165860-solved-updating-two-records-in-one-table/ Share on other sites More sharing options...
pengu Posted July 13, 2009 Share Posted July 13, 2009 $passReset = mysql_query("UPDATE users SET password='$db_password',FLAG='1' WHERE email_address='$email_address'"); Pretty sure it's just separated by a comma. Link to comment https://forums.phpfreaks.com/topic/165860-solved-updating-two-records-in-one-table/#findComment-874861 Share on other sites More sharing options...
stelthius Posted July 13, 2009 Author Share Posted July 13, 2009 Thanks Pengue, i thought it may have been i just wasnt sure so i figured id ask for a second opinion ill try it now. Link to comment https://forums.phpfreaks.com/topic/165860-solved-updating-two-records-in-one-table/#findComment-874867 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.