View Single Post
  #3 (permalink)  
Old March 5th, 2006, 07:02 PM
mat41 mat41 is offline
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

This will work if ALL the usernames are unique. IMO a bad example unless indeed you are using code to enforce unique user names when a user account is created.

Are you? If so the code above will work for you. If not Im sure not many people have the same email address. This is an example of a unique field that can be used.

Wind is your friend
Matt
Reply With Quote