Welcome Guest, Not a member yet? Register   Sign In
Updating a unique field in database (example: account username or email)
#2

[eluser]aidehua[/eluser]
Assuming you have an ID column in your table, and you know your user's ID, maybe you could do something like this:

SELECT COUNT(*) dupe FROM $table WHERE $column = '$str' AND id != $id;


Messages In This Thread
Updating a unique field in database (example: account username or email) - by El Forum - 12-10-2009, 06:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB