asanti Posted August 18, 2014 Share Posted August 18, 2014 Hi guys, i want to know how can i accomplish this, 1 - manually add an user to the database and activate it 2 - a script to resend the activation code to a user (user didn't receive the email or lost it) Thanks. Link to comment Share on other sites More sharing options...
HartleySan Posted August 18, 2014 Share Posted August 18, 2014 Run an insert on the DB and set the activation code to null (or whatever value is "activated"). Send an email via PHP that grabs the activation code from the DB and adds it to the email. Link to comment Share on other sites More sharing options...
asanti Posted August 18, 2014 Author Share Posted August 18, 2014 thanks for your answer, the second point is clear. The first one i still don't get it. Suppose i have to manually insert users from another database to the actual one with phpmysql. Activate field is blank, users aren't still active, right?, (this is my first php book, thanks for your patience...) Link to comment Share on other sites More sharing options...
HartleySan Posted August 19, 2014 Share Posted August 19, 2014 What value is required for a user to be "activated"? Is it null? Some other value? Whatever that value is, insert it into the users table when you perform an insert on that table. That make sense (or am I still misunderstanding your question)? Link to comment Share on other sites More sharing options...
asanti Posted August 19, 2014 Author Share Posted August 19, 2014 Yes!. Thank you! it is solved Link to comment Share on other sites More sharing options...
Recommended Posts