reel_biggy_fish Posted September 6, 2010 Author Share Posted September 6, 2010 oh okay i could easily just create a drop down menu and let them select from a wide choice. would this mean when they type their secret question would i have to display their secret question? or could i not have to do that and make sure they remember it? thanks again for your help. i have kinda understanding what i have to do Link to comment https://forums.phpfreaks.com/topic/212601-check-fields-in-db-and-overwrite-one/page/2/#findComment-1108017 Share on other sites More sharing options...
petroz Posted September 6, 2010 Share Posted September 6, 2010 Show them the question. Most people that can't remember their password might have trouble remembering their question... Link to comment https://forums.phpfreaks.com/topic/212601-check-fields-in-db-and-overwrite-one/page/2/#findComment-1108018 Share on other sites More sharing options...
reel_biggy_fish Posted September 6, 2010 Author Share Posted September 6, 2010 ahh okay thanks for clearing that one up. so i presume from all of this i would do ("SELECT * FROM `user` WHERE `question` = '$n'")); run the query, and then display the results in a textbox Link to comment https://forums.phpfreaks.com/topic/212601-check-fields-in-db-and-overwrite-one/page/2/#findComment-1108021 Share on other sites More sharing options...
petroz Posted September 7, 2010 Share Posted September 7, 2010 No.. I would recommend locking each question and answer to each user.. just make an additional field for question and answer for your user table... Link to comment https://forums.phpfreaks.com/topic/212601-check-fields-in-db-and-overwrite-one/page/2/#findComment-1108103 Share on other sites More sharing options...
reel_biggy_fish Posted September 7, 2010 Author Share Posted September 7, 2010 im sorry youve confused my with that by saying locking the question and answer? Link to comment https://forums.phpfreaks.com/topic/212601-check-fields-in-db-and-overwrite-one/page/2/#findComment-1108154 Share on other sites More sharing options...
petroz Posted September 7, 2010 Share Posted September 7, 2010 Basically... when the user is prompted to enter their answer to their security question, make sure you are showing them the right question. Link to comment https://forums.phpfreaks.com/topic/212601-check-fields-in-db-and-overwrite-one/page/2/#findComment-1108329 Share on other sites More sharing options...
reel_biggy_fish Posted September 7, 2010 Author Share Posted September 7, 2010 ohhh okay i understand you. isnt that just $n = $_POST['username']; select question from securityq where usern = $n Link to comment https://forums.phpfreaks.com/topic/212601-check-fields-in-db-and-overwrite-one/page/2/#findComment-1108341 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.