Jump to content

identical sql records


StirCrazy

Recommended Posts

Hi folks,

I've been trying to convert a Mysql database to work from a crappy old script that had a habit of inserting duplicate records.

I want a little bit of code that goes through and checks that each email address on each account is unique. If there is more than one account using the same email address I want to:-
[code]echo "Email address " . $email . " is associated with account numbers: " . $list_of_accounts_ids;[/code]

the records are in:- select id,email from users

Can anyone help?

Link to comment
https://forums.phpfreaks.com/topic/22939-identical-sql-records/
Share on other sites

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.