0

Possible Duplicate:
Algorithms for string similarities (better than Levenshtein, and similar_text)? Php, Js

I have a website that allow users to create accounts to refer others friend. And save these accounts into Database Table. But I have a problem is there's some people who create multiple account with email like nike@gmail.com, nike1@gmail.com, nike2@gmail.com and so on.

Is there a way to check that in the database is these email have more that three block all these email?

I am using Php for this application.

Community
  • 1
  • 1
Ya Fa Su
  • 160
  • 1
  • 4
  • 13

1 Answers1

0

Well it isn't seems to be problem actually. Because, There can be different users with slight difference in their email id.

How can you tell that user with email ids : nike1@gmail.com and nike2@gmail.com are the same that of nike@gmail.com ?

but how ever if you want to check so :

1) You can remove the last numbers by using the regx or something similar 2) Then can check the original email id if it exists in your database.

Vedant Terkar
  • 4,553
  • 8
  • 36
  • 62