Try:
select count(user_name) as usercount from $table where user_name = '$name'
Then extract the value 'usercount' from the recordset and if it's 0, none exists. If it's greater than 0, then it exists.
Reputation Points: 262
Solved Threads: 18
a.k.a inscissor
Offline 1,227 posts
since Feb 2002