Jump to content

Email Addresses in Database


Irksome

Recommended Posts

Hi,

 

I've just created a login system, and everything works fine. There's only one problem that I'm faced with at the moment, and that's the update profile page.

 

Now when you appear on this page, the data form fields show up, containing your current username, email address, name etc. But when you click submit, it comes back with "Your email is already in use!". Yes it's in use, because the user is signed up with that address.

 

What piece of code would I need to add in order to update the profile without getting an email in use error?

 

Any help would be appreciated.

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/57972-email-addresses-in-database/
Share on other sites

Some would give user's and id and those would be passed along to each page, just compare id's. If the updater_id == db_id then it should be fine. If you don't want to use id's, then you might implement fields for "old" username & password to enter for comparison (if changed) before updating.

 

Any of that sound good?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.