471,318 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,318 software developers and data experts.

Email validation from Database

Hello guys........

please tell me .............

I want to do email validation like i have a userid entered by user new
user.so problem is that i have to do the validation when i'll click on
save button b'coz userid should be unique.....
Thanks in advance

Jun 27 '08 #1
1 1274
If you just need it to be unique, then tell the database that... most
databases have a mechanism to add a unique constraint to a value, which
will prevent you doing duplicate insertions. Of course, this is a
back-stop; you can also check this in advance and do something different
if that e-mail is already registered - but /how/ to do that depends on
the scenario, and you haven't told us what that is...

Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

25 posts views Thread by Dynamo | last post: by
6 posts views Thread by Hernán Castelo | last post: by
1 post views Thread by Hi | last post: by
4 posts views Thread by Ken D. | last post: by
8 posts views Thread by tony wong | last post: by
2 posts views Thread by Keith G Hicks | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.